Constructor

new (width:Int, height:Int)

Variables

opacity:Float

Methods

begin ():Void

clear ():Void

drawChars (text:String, offset:Int, length:Int, x:Float, y:Float):Void

drawImage (img:Image, x:Float, y:Float):Void

drawImage2 (image:Image, sx:Float, sy:Float, sw:Float, sh:Float, dx:Float, dy:Float, dw:Float, dh:Float, ?angle:Float, ?ox:Float, ?oy:Float):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, ?scaleX:Float, ?scaleY:Float, ?scaleCenterX:Float, ?scaleCenterY: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

get_opacity ():Float

popOpacity ():Void

pushOpacity ():Void

render (canvas:Canvas):Void

setColor (color:Color):Void

setFont (font:Font):Void

set_opacity (value:Float):Float

translate (x:Float, y:Float):Void