Class fever.utils.GraphicUtil

Description

Provides methods for drawing.

Method Index

getHorizontalGradientMatrix(), getRotatedGradientMatrix(), getVerticalGradientMatrix()

Method Detail

getHorizontalGradientMatrix

static public function getHorizontalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix

Returns a horizontal gradient matrix defined by passed-in arguments.

Parameters

xX coordinate of the starting point of gradient
yY coordinate of the starting point of gradient
widthWidth of the gradient
heightHeight of the gradient

Return

a flash.geom.Matrix instance

getVerticalGradientMatrix

static public function getVerticalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix

Returns a vertical gradient matrix defined by passed-in arguments.

Parameters

xX coordinate of the starting point of gradient
yY coordinate of the starting point of gradient
widthWidth of the gradient
heightHeight of the gradient

Return

a flash.geom.Matrix instance

getRotatedGradientMatrix

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.

Parameters

xX coordinate of the starting point of gradient
yY coordinate of the starting point of gradient
widthWidth of the gradient
heightHeight of the gradient
rotationGradient rotation angle

Return

a flash.geom.Matrix instance