Page 1 of 1

DECREASE BRIGHTNESS

Posted: Sat Nov 11, 2006 12:58 pm
by mal1k
seems I cant get the brightness to diminish.

got no trouble to do the fading to white

startshape AA

rule AA
{
CIRCLE{b 0}
AA{x .8 s .9 b .05}
}



but the fading to black resist

startshape AA

rule AA
{
CIRCLE{b 1}
AA{x .8 s .9 b - .05}
}

any clue ??

/mlk

Posted: Sat Nov 11, 2006 3:45 pm
by MtnViewJohn
The brightness adjustment 'b 1' always sets the brightness all the way to white (or to a color if the saturation is greater than zero). 'b -1' always sets the brightness to black. What you need is two rules. Your AA rule will fade from white to black, but you need to start with another rule (let's call it AB), that changes the color from the default black to white:

Code: Select all

startshape AB 

rule AB 
{
AA {b 1}
}

rule AA 
{ 
CIRCLE{} 
AA{x .8 s .9 b -0.05} 
}