new (canvas:Dynamic)
drawArc (cx:Float, cy:Float, radius:Float, sAngle:Float, eAngle:Float, strength:Float = 1.0, ccw:Bool = false):Void
drawCircle (cx:Float, cy:Float, radius:Float, strength:Float = 1.0):Void
fillArc (cx:Float, cy:Float, radius:Float, sAngle:Float, eAngle:Float, ccw:Bool = false):Void
fillCircle (cx:Float, cy:Float, radius:Float):Void
staticstringWidth (font:Font, text:String):Float
color:Color
The color value is used for geometric primitives, images, and text. Remember to set it back to white to draw images unaltered.
font:Font
fontGlyphs:Array<Int>
fontSize:Int
imageScaleQuality:ImageScaleQuality
mipmapScaleQuality:ImageScaleQuality
opacity:Float
pipeline:PipelineState
transformation:FastMatrix3
drawCharacters (text:Array<Int>, start:Int, length:Int, x:Float, y:Float):Void
drawScaledImage (img:Image, dx:FastFloat, dy:FastFloat, dw:FastFloat, dh:FastFloat):Void
drawSubImage (img:Image, x:FastFloat, y:FastFloat, sx:FastFloat, sy:FastFloat, sw:FastFloat, sh:FastFloat):Void
flush ():Void
get_opacity ():Float
popOpacity ():Float
popTransformation ():FastMatrix3
pushOpacity (opacity:Float):Void
pushRotation (angle:FastFloat, centerx:FastFloat, centery:FastFloat):Void
pushTransformation (transformation:FastMatrix3):Void
pushTranslation (tx:FastFloat, ty:FastFloat):Void
rotate (angle:FastFloat, centerx:FastFloat, centery:FastFloat):Void
set_opacity (opacity:Float):Float
translate (tx:FastFloat, ty:FastFloat):Void