MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: upgrading SurfaceColor directive in version 6


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
> 
> 


  • Prev by Date: Re: Problem showing a column object beside a graph using GraphicsGrid
  • Next by Date: Re: Satellite Visualization!
  • Previous by thread: Re: upgrading SurfaceColor directive in version 6
  • Next by thread: compute distribution