Re: upgrading SurfaceColor directive in version 6
- To: mathgroup at smc.vnet.net
- Subject: [mg82523] Re: upgrading SurfaceColor directive in version 6
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 23 Oct 2007 05:34:33 -0400 (EDT)
- Organization: Uni Leipzig
- References: <ffed1s$bfk$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, try ParametricPlot3D[ {Cos[\[Phi]]*Sin[\[Theta]], Sin[\[Phi]]*Sin[\[Theta]], Cos[\[Theta]]}, {\[Theta], 0, Pi}, {\[Phi], 0, Pi}, ColorFunction -> (Directive[Hue[1/6, .3, 1], Specularity[Hue[1/6, 1, 1], 8]] &) ] Regards Jens congruentialuminaire at yahoo.com wrote: > Hello Mathematica UG: > > I created a plot with the following V5 Graphics directive under V6: > > SurfaceColor[ Hue[1/6, .3, 1], Hue[1/6, 1, 1], 8] > > The command (ParametricPlot3D) complains that this is a legacy > operation and that I should use ColorFunction. > > Help in V6 says that SurfaceColor has been deprecated in favor of > Specularity and Glow. > > I looked at the help for all of these and I am not sure which > arguments correspond, except the 3rd is the glow. > > If it is easy to translate this, I would greatly appreciate any help > and/or pointers convert this. > > TIA. > > Regards..Roger > >