DECREASE BRIGHTNESS

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
mal1k
Posts: 1
Joined: Sat Nov 11, 2006 12:42 pm
Location: Paris France

DECREASE BRIGHTNESS

Post 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

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post 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} 
} 

Post Reply