drawPolygon

fun drawPolygon(uiElement: UIElement, xyPoints: FloatArray, size: Int, style: FillStyle, convex: Boolean, offset: Int = 0, stride: Int = 2): Boolean

Draw a polygon command, to draw a polygon on the glasses display

Return

true if the given information is valid

Parameters

uiElement

the UIKit.widgets.Polygon ui element (or a custom control)

xyPoints

array of xy coordinated

size

the size of the xPoints and yPoints arrays

style

the fill style @see FillStyle