Provides methods for drawing.
static public function getHorizontalGradientMatrix(x:Number, y:Number, width:Number, height:Number):MatrixReturns a horizontal gradient matrix defined by passed-in arguments.
x | X coordinate of the starting point of gradient |
y | Y coordinate of the starting point of gradient |
width | Width of the gradient |
height | Height of the gradient |
a flash.geom.Matrix instance
static public function getVerticalGradientMatrix(x:Number, y:Number, width:Number, height:Number):MatrixReturns a vertical gradient matrix defined by passed-in arguments.
x | X coordinate of the starting point of gradient |
y | Y coordinate of the starting point of gradient |
width | Width of the gradient |
height | Height of the gradient |
a flash.geom.Matrix instance
static public function getRotatedGradientMatrix(x:Number, y:Number, width:Number, height:Number, rotation:Number):Matrix
Returns a gradient matrix defined by passed-in arguments.
Gradient is rotate by passed-in rotation angle.
x | X coordinate of the starting point of gradient |
y | Y coordinate of the starting point of gradient |
width | Width of the gradient |
height | Height of the gradient |
rotation | Gradient rotation angle |
a flash.geom.Matrix instance