Polygon

A closed polygon

Maximum points: 64

Supported transformations: Scale, Rotate, Translate

Constructors

Link copied to clipboard
constructor()
constructor(id: String)

Functions

Link copied to clipboard
fun addMany(xs: FloatArray, ys: FloatArray, size: Int): Polygon

Add a series point to the ui element

Link copied to clipboard

Add a point to the ui element

Link copied to clipboard
fun clear(): Polygon

Remove all points from the ui elements

Link copied to clipboard

Get the number of points were added to the ui element

Link copied to clipboard
protected open override fun onDraw(canvas: CanvasBuffer)

The draw method is called to actually draw the ui element visual representation to the CanvasBuffer