SWFGradient


SWFGradient SWFGradient();

Constructor. Create a new SWFGradient object.

After you've added the entries to your gradient, you can use the gradient in a shape fill with the SWFShape addFill method.



void addEntry(float ratio, int r, int g, int b [, int a]);
Add an entry to the gradient list. ratio is a number between 0 and 1 indicating where in the gradient this color appears. Thou shalt add entries in order of increasing ratio.


back to index