class flixel.addons.display.shapes.FlxShape extends FlxSprite

Available on all platforms

A convenience class for wrapping vector shape drawing in FlxSprites, all ready to go. * Don't use this class by itself -- use things like FlxLine, FlxCircle, that extend it * @author Lars A. Doucet

Instance Fields

function new(X:Float, Y:Float, CanvasWidth:Float, CanvasHeight:Float, LineStyle_:LineStyle, FillStyle_:FillStyle, ?TrueWidth:Float = 0, ?TrueHeight:Float = 0):Void

(You should never instantiate this directly, only call it as a super) * Creates a Shape wrapped in a FlxSprite * *

X

X location *

Y

Y location *

CanvasWidth

Width of pixel canvas *

CanvasHeight

Height of pixel canvas *

LineStyle_

Drawing style for strokes -- see flixel.util.FlxSpriteUtil.LineStyle *

FillStyle_

Drawing style for fills -- see flixel.util.FlxSpriteUtil.FillStyle *

TrueWidth

Width of raw unstyled geometric object, ignoring line thickness, filters, etc *

TrueHeight

Height of raw unstyled geometric object, ignoring line thickness, filters, etc

function destroy():Void

function draw():Void

function drawSpecificShape(?matrix:Matrix = null):Void

function redrawShape():Void