| java.lang.Object org.openlaszlo.iv.flash.api.FlashItem org.openlaszlo.iv.flash.api.shape.Gradient
Gradient | final public class Gradient extends FlashItem (Code) | | Gradient
Here is an overview of the Macromedia Flash (SWF) gradient model:
- There are two styles of gradient - Linear and Radial.
- Each gradient has its own transformation matrix, and can be transformed independently of its parent shape.
- A gradient can have up to eight control points. Colors are interpolated between the control
points to create the color ramp.
- Each control point is defined by a ratio and an RGBA color. The ratio determines the position of
the control point in the gradient, the RGBA value determines its color.
author: Dmitry Skavish |
Gradient | public Gradient()(Code) | | Creates empty gradient
|
Gradient | public Gradient(int ratio, Color color)(Code) | | Creates gradient with one transition
Parameters: ratio - specified retio Parameters: color - specified color |
addTransition | public void addTransition(int ratio, Color color)(Code) | | Adds transition
Parameters: ratio - the transition's ratio Parameters: color - the transition's color |
getNumber | public int getNumber()(Code) | | |
getRatios | public int[] getRatios()(Code) | | |
|
|