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:13:06 EDT (-0400)
  Re: How to autmatically change the color of balls?  
From: Alain
Date: 29 Aug 2006 19:51:12
Message: <44f4d2f0@news.povray.org>
iz2517 nous apporta ses lumieres en ce 28/08/2006 20:32:
> "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.
> 
> 
What is the error?
If it's about undeclared identifier, did you #include "colors.inc"?

-- 
Alain
-------------------------------------------------
If That Phone Was Up Your Butt, Maybe You Could Drive A Little Better!


Post a reply to this message

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