class lime.graphics.CanvasRenderContext

Instance Fields

function new(): Void

function arc(x:Float, y:Float, radius:Float, startAngle:Float, endAngle:Float, anticlockwise:Bool): Void

function arcTo(x1:Float, y1:Float, x2:Float, y2:Float, radius:Float): Void

function beginPath(): Void

function bezierCurveTo(cp1x:Float, cp1y:Float, cp2x:Float, cp2y:Float, x:Float, y:Float): Void

function clearRect(x:Float, y:Float, width:Float, height:Float): Void

function clearShadow(): Void

function clip(): Void

function closePath(): Void

function createDynamicImageData(sw:Float, sh:Float): Dynamic

function createDynamicImageData(dynamicImageData:Dynamic): Dynamic

function createPattern(image:Dynamic, repetitionType:String): Dynamic

function createPattern(canvas:Dynamic, repetitionType:String): Dynamic

function createRadialGradient(x0:Float, y0:Float, r0:Float, x1:Float, y1:Float, r1:Float): Dynamic

function drawImage(element:Dynamic, sx:Float, sy:Float, ?sw:Float, ?sh:Float, ?dx:Float, ?dy:Float, ?dw:Float, ?dh:Float): Void

function drawImageFromRect(image:Dynamic, ?sx:Float, ?sy:Float, ?sw:Float, ?sh:Float, ?dx:Float, ?dy:Float, ?dw:Float, ?dh:Float, ?compositeOperation:String): Void

function fill(): Void

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

function fillText(text:String, x:Float, y:Float, ?maxWidth:Float): Void

function getDynamicImageData(sx:Float, sy:Float, sw:Float, sh:Float): Dynamic

function getLineDash(): Array<Float>

function isPointInPath(x:Float, y:Float): Bool

function lineTo(x:Float, y:Float): Void

function measureText(text:String): Dynamic

function moveTo(x:Float, y:Float): Void

function putDynamicImageData(dynamicImageData:Dynamic, dx:Float, dy:Float, dirtyX:Float, dirtyY:Float, dirtyWidth:Float, dirtyHeight:Float): Void

function putDynamicImageData(dynamicImageData:Dynamic, dx:Float, dy:Float): Void

function putDynamicImageDataHD(dynamicImageData:Dynamic, dx:Float, dy:Float, dirtyX:Float, dirtyY:Float, dirtyWidth:Float, dirtyHeight:Float): Void

function putDynamicImageDataHD(dynamicImageData:Dynamic, dx:Float, dy:Float): Void

function quadraticCurveTo(cpx:Float, cpy:Float, x:Float, y:Float): Void

function rect(x:Float, y:Float, width:Float, height:Float): Void

function restore(): Void

function rotate(angle:Float): Void

function save(): Void

function scale(sx:Float, sy:Float): Void

function setAlpha(alpha:Float): Void

function setCompositeOperation(compositeOperation:String): Void

function setFillColor(c:Float, m:Float, y:Float, k:Float, a:Float): Void

function setFillColor(color:String, ?alpha:Float): Void

function setFillColor(grayLevel:Float, ?alpha:Float): Void

function setFillColor(r:Float, g:Float, b:Float, a:Float): Void

function setLineCap(cap:String): Void

function setLineDash(dash:Array<Float>): Void

function setLineJoin(join:String): Void

function setLineWidth(width:Float): Void

function setMiterLimit(limit:Float): Void

function setShadow(width:Float, height:Float, blur:Float, c:Float, m:Float, y:Float, k:Float, a:Float): Void

function setShadow(width:Float, height:Float, blur:Float, ?color:String, ?alpha:Float): Void

function setShadow(width:Float, height:Float, blur:Float, grayLevel:Float, ?alpha:Float): Void

function setShadow(width:Float, height:Float, blur:Float, r:Float, g:Float, b:Float, a:Float): Void

function setStrokeColor(c:Float, m:Float, y:Float, k:Float, a:Float): Void

function setStrokeColor(color:String, ?alpha:Float): Void

function setStrokeColor(grayLevel:Float, ?alpha:Float): Void

function setStrokeColor(r:Float, g:Float, b:Float, a:Float): Void

function setTransform(m11:Float, m12:Float, m21:Float, m22:Float, dx:Float, dy:Float): Void

function stroke(): Void

function strokeRect(x:Float, y:Float, width:Float, height:Float, ?lineWidth:Float): Void

function strokeText(text:String, x:Float, y:Float, ?maxWidth:Float): Void

function transform(m11:Float, m12:Float, m21:Float, m22:Float, dx:Float, dy:Float): Void

function translate(tx:Float, ty:Float): Void