POV-Ray : Newsgroups : povray.advanced-users : Problems with macro (3.6) : Re: Problems with macro (3.6) Server Time
29 Jun 2024 02:05:40 EDT (-0400)
  Re: Problems with macro (3.6)  
From: clipka
Date: 10 Jun 2010 07:58:56
Message: <4c10d380@news.povray.org>
Am 10.06.2010 02:15, schrieb SharkD:
> On 6/9/2010 6:39 PM, clipka wrote:
>> It should work with any color literal syntax you can imagine, such as
>> "color red R", "color rgb GREY filter F", "color rgbft <R,G,B,F,T>", or
>> what-have-you.
>>
>> (BTW, I suggest using Mixed_Case identifiers for anything you name
>> yourself, as lower_case identifiers pose a risk of conflicting with
>> future SDL keywords.)
>
> It didn't work for me, in 3.6 at least. Example:
>
> #declare test_color = Gamma_Adjust(<1,1,1>);
>
> Results in an "Bad operands for period operator" error.

<1,1,1> is not a color (=5D vector), but a 3D vector. Try this instead:

    #declare test_color = Gamma_Adjust( rgb <1,1,1> );


Post a reply to this message

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