|
|
>Thomas de Groot on date 20/05/2010 09:11 wrote:
> I do not understand this. The following macro
>
> #macro GammaColort(Color,Gamma)
> rgbt<pow(Color.red,Gamma), pow(Color.green,Gamma), pow(Color.blue,Gamma),
> Color.transmit>
> #end
>
> gives a parse error: "Bad operands for period operators"
>
> while the following macros work just fine:
>
> #macro GammaColorf(Color,Gamma)
> rgbf<pow(Color.red,Gamma), pow(Color.green,Gamma), pow(Color.blue,Gamma),
> Color.filter>
> #end
>
> #macro GammaColorft(Color,Gamma)
> rgbft<pow(Color.red,Gamma), pow(Color.green,Gamma),
> pow(Color.blue,Gamma), Color.filter, Color.transmit>
> #end
>
> Can somebody tell me what I do wrong?
>
>
> Thomas
>
>
>
Perhaps your color doesn't have the transmit component.
An example:
with the color <0.8,0.6,0.7,0.5,0.8> the three macros works fine (I've
tested with 3.6.2 version).
With the color <0.8,0.6,0.7,0.5> I've the "Bad operands for period
operators" error for both GammaColort and GammaColorft macro.
Paolo
Post a reply to this message
|
|