View source
abstract Canvas2DRenderContext(CanvasRenderingContext2D)
package lime.graphics
from CanvasRenderingContext2D, to CanvasRenderingContext2D
Available on HTML5
The Canvas2DRenderContext
represents the primary js.html.CanvasRenderingContext2D
instance when Canvas
is the render context type of the Window
.
You can convert from lime.graphics.RenderContext
to Canvas2DRenderContext
directly
if desired:
var ctx:CanvasRenderingContext2D = window.context;