POV-Ray : Newsgroups : povray.general : color syntax - request for bug comment : Re: color syntax - request for bug comment Server Time
4 Nov 2024 13:03:24 EST (-0500)
  Re: color syntax - request for bug comment  
From: Thorsten Froehlich
Date: 22 Dec 2003 04:04:34
Message: <3fe6b3a2$1@news.povray.org>
In article <3fe662b1$1@news.povray.org> , Francois Labreque 
<fla### [at] videotronca>  wrote:

>> According to the docs (6.1.5.5)
>>
>> "For example...
>> color My_Color red 0.5
>> this substitutes whatever was the red component of My_Color with a red
>> component of 0.5 however...
>> color My_Color + red 0.5
>> adds 0.5 to the red component of My_Color"
>>
>> But the following scene seems to contradict this:
>>
>> #version 3.5;
>>
>> #declare MyCol1=  <1,1,0>;
>> #declare MyCol2=  <0,0,1>;
>>
>> //Legal
>> #declare MyCol1a= MyCol1 * MyCol2;
>>
>> // All non-legal
>> //#declare MyCol1b= MyCol1 * blue 0.5;
>> //#declare MyCol1c= MyCol1 blue 0.5;
>> //#declare MyCol1d= MyCol1 MyCol2;
>>
>> ... so, is this a bug in pov, the docs, or my understanding of them?
>
> Hard to say where the bug lies, but the behaviour does contradict the docs.

The docs are simply outdated.  The above syntax (but with MyCol1 and MyCol2
properly declared as colors, of course!) works in 3.1 most of the time.
However, it is actually incompatible with certain situations were macros are
used.  Consequently, it cannot be used in 3.5 in order to eliminate old 3.1
bugs.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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