Constructor

new ()

Variables

color:Color

The color value is used for geometric primitives, images, and text. Remember to set it back to white to draw images unaltered.

opacity:Float

Methods

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

clear (?color:Color):Void

drawCharacters (text:Array<Int>, start:Int, length:Int, x:Float, y:Float):Void

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

drawRect (x:Float, y:Float, width:Float, height:Float, strength:Float = 1.0):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

Static variables

staticfontGlyphs:Array<Int> = [for (i in 32 ... 256) i]