Canvas

Canvas is a class that provides drawing functions.
When you create a Window, the property canvas is created automatically.
When using it, use the canvas property of this Window.

Member

Method
capture (Capture the entire current drawing content in Bitmap / Texture / Offscreen)
clear (Clear the entire drawing area)
draw9Patch (Drawing using 9patch)
drawMesh (Version using index buffer for mesh drawing)
drawMesh (Mesh drawing)
drawText (Text drawing (not implemented))
drawTexture (Draw two textures by specifying a shader)
drawTexture (Draw 3 textures by specifying shader)
drawTexture (Draw a single texture)
drawTexture (Draw one texture by specifying a shader)
drawTextureAtlas (Draw a part of the texture)
drawTextureAtlas (Draw a part of the texture (with shader specified))
fill (Fill with color)
flush (Flash drawing)
restore (Restore the state of matrix and clip (stack))
save (Save the state of matrix and clip (stack))
Property
blendMode (Specify drawing composition mode)
clearColor (Clear color specification / Screen clear color before drawing processing)
clipRect (Rectangle Rect class for clipping)
defaultFillShader (Default shader used when filling)
defaultShader (Default shader used for drawing textures (shader when only one texture is passed in drawTexture))
enableClipRect (Setting whether to clip with a rectangle)
enableCulling (Setting whether to perform front and back culling)
height (Drawing area height)
matrix (Drawing matrix specification)
renderTarget (Drawing target specification)
width (Drawing area width)