POV-Ray : Newsgroups : povray.general : How to autmatically change the color of balls? : Re: How to autmatically change the color of balls? Server Time
31 Jul 2024 22:10:21 EDT (-0400)
  Re: How to autmatically change the color of balls?  
From: iz2517
Date: 28 Aug 2006 20:35:01
Message: <web.44f38b2994ddb2ab70cedff30@news.povray.org>
"Roman Reiner" <lim### [at] gmxde> wrote:
> I just checked. It seems like the HSL colors are in the range <0,0,0> to
> <360,1,1>. Also i forgot the brackets at the function. It should be
>
> pigment { color rgb CHSL2RGB(<E,1,0.5>) }
>
> with E in the range 240 (blue) to 0 (red).
>
> Regards Roman

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
OK.

I was able to read in the format <x,y,z>,E

Now the following lines are not accepted - shows error

  #declare a = (11 - E)/11*240;
  sphere {MyVect, 1 texture {pigment {color rgb CHSL2RGB(<a,1,0.5>) }}}

what is wrong in the above lines?
Thanks.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.