Constructor

new ()

Variables

color:Color

The color value is used for geometric primitives as well as for images. Remember to set it back to white to draw images unaltered.

fontGlyphs:Array<Int>

opacity:Float

Methods

begin (?clear:Bool, ?clearColor:Color):Void

clear (?color:Color):Void

drawLine (x1:Float, y1:Float, x2:Float, y2:Float, ?strength:Float):Void

drawRect (x:Float, y:Float, width:Float, height:Float, ?strength:Float):Void

drawString (text:String, x:Float, y:Float):Void

drawVideo (video:Video, x:Float, y:Float, width:Float, height:Float):Void

end ():Void

fillRect (x:Float, y:Float, width:Float, height:Float):Void

fillTriangle (x1:Float, y1:Float, x2:Float, y2:Float, x3:Float, y3:Float):Void

flush ():Void

get_opacity ():Float

popOpacity ():Float

pushOpacity (opacity:Float):Void

pushRotation (angle:FastFloat, centerx:FastFloat, centery:FastFloat):Void

pushTransformation (transformation:FastMatrix3):Void

rotate (angle:FastFloat, centerx:FastFloat, centery:FastFloat):Void

scissor (x:Int, y:Int, width:Int, height:Int):Void

set_opacity (opacity:Float):Float