Canvas
Draws shapes on a canvas of Ui.canvas. Later shapes draw over earlier ones and are hit first.
Methods
Section titled “Methods”circle()
Section titled “circle()”circle(
center,radius,style?):void
Parameters
Section titled “Parameters”center
Section titled “center”radius
Section titled “radius”number
style?
Section titled “style?”Returns
Section titled “Returns”void
line()
Section titled “line()”line(
points,style?):void
Parameters
Section titled “Parameters”points
Section titled “points”readonly CanvasPoint[]
style?
Section titled “style?”Returns
Section titled “Returns”void
polygon()
Section titled “polygon()”polygon(
points,style?):void
Parameters
Section titled “Parameters”points
Section titled “points”readonly CanvasPoint[]
style?
Section titled “style?”Returns
Section titled “Returns”void
rect()
Section titled “rect()”rect(
x,y,width,height,style?):void
Parameters
Section titled “Parameters”number
number
number
height
Section titled “height”number
style?
Section titled “style?”Returns
Section titled “Returns”void
text()
Section titled “text()”text(
position,text,style?):void
Text whose top-left corner is position, in the theme’s text color unless stroked.
Parameters
Section titled “Parameters”position
Section titled “position”unknown
style?
Section titled “style?”Returns
Section titled “Returns”void