class org.aswing.graphics.GradientBrush
GradientBrush encapsulate the fill paramters for flash.display.Graphics.beginGradientFill() @see http://livedocs.macromedia.com/flex/2/langref/flash/display/Graphics.html#beginGradientFill() @author paling
Class Fields
Instance Fields
function new(fillType:GradientType, colors:Array<Int>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, matrix:Matrix, ?spreadMethod:SpreadMethod = null, ?interpolationMethod:InterpolationMethod = null, ?focalPointRatio:Float = 0): Void
Create a GradientBrush object
you can refer the explaination for the paramters from Adobe's doc
to create a Matrix, you can use matrix.createGradientBox() from the matrix object itself
@see http://livedocs.macromedia.com/flex/2/langref/flash/display/Graphics.html#beginGradientFill() @see http://livedocs.macromedia.com/flex/2/langref/flash/geom/Matrix.html#createGradientBox()