how to start with 0 alpha?

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

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
chris1234
Posts: 2
Joined: Tue Nov 25, 2008 7:12 am

how to start with 0 alpha?

Post by chris1234 »

Hey, i want an object to start with 0 alpha and then graduately increase the alpha. starting with 1 alpha and fade to 0 works but I cant get the other way around to work


this is a script i copy pasted from another post and applied alpha t it

Code: Select all

startshape AB

rule AB
{
AA {alpha 0}
}

rule AA
{
CIRCLE{}
AA{x .8 s .9 alpha +0.05}
} 
this doesn't work

User avatar
Traven
Posts: 11
Joined: Wed Dec 26, 2007 6:28 pm
Location: Poitiers, France
Contact:

Post by Traven »

hello chris,

this is the right code

Code: Select all

startshape AB

rule AB
{
AA {alpha -1}
}

rule AA
{
CIRCLE{}
AA{x .8 s .9 alpha +0.05}
} 
You have to decrease alpha to 0 for the fisrt shape, a base shape has an alpha of 1.

chris1234
Posts: 2
Joined: Tue Nov 25, 2008 7:12 am

Post by chris1234 »

thanx traven!

Post Reply