Re: Coloring a surface
- To: mathgroup at smc.vnet.net
- Subject: [mg39140] Re: Coloring a surface
- From: atelesforos at hotmail.com (Orestis Vantzos)
- Date: Fri, 31 Jan 2003 04:36:48 -0500 (EST)
- References: <b183vl$koi$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
An easy way to describe a color in Mathematica is to use Hue[col] where col is a number between 0 and 1. Hue[0] and Hue[1] are both red and the values in between describe all the other colors. Now if you want to color a parametric surface use the following: ParametricPlot3D[{f[u,v],g[u,v],h[u,v],Hue[c[u,v]]},{u,u0,u1},{v,v0,v1},opts___] where c[u,v] is a function of u,v that returns a value between 0 and 1. Orestis Jean.Pellegri at wanadoo.fr (Jean P.) wrote in message news:<b183vl$koi$1 at smc.vnet.net>... > I want plot and color a surface x=f(u,v), y=g(u,v), z=h(u,v) > > How to create a color function colorfunc[x,y,z] (or colorfunc[u,v]) > that associate a color at each point of the surface ?? > > Thanks > > Scuse for my very bad english language !! > > Jean P.