public static function drawEase(target:Sprite, start:Point, end:Point, easeX:String, easeY:String, segments:int = 100):void
This draws a line showing a visual representation of an easing equation, often used with Tweens.
Parameters
| target:Sprite — The target DisplayObject to draw to
|
|
| start:Point — A Point to start at (the beginning value of a tween)
|
|
| end:Point — A Point to end at (the final value of a tween)
|
|
| easeX:String — The easing equation for the x value ('linear' if drawing horizontal)
|
|
| easeY:String — The easing equation for the y value ('linear' if drawing vertical)
|
|
| segments:int (default = 100 ) — How many segments to divide the line in (higher is more detailed)
|
public static function drawSlice(target:Object, beginAngle:Number, endAngle:Number, radius:Number, color:*, x:Number = 0, y:Number = 0, precision:int = 20):void
This method draws a slice graphic to the target sprite
Parameters
| target:Object — The target sprite to write to
|
|
| beginAngle:Number — The beginning angle to use to create the slice
|
|
| endAngle:Number — The end angle to use
|
|
| radius:Number — How big to make the slice
|
|
| color:* — The color of the slice to draw - "#00ff00", 0x909090, etc.
|
|
| x:Number (default = 0 ) — The x offset to draw to - defaults 0
|
|
| y:Number (default = 0 ) — The y offset to draw to - defaults 0
|
|
| precision:int (default = 20 ) — How many segments to make
|