drawPolygon

expect fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Point)

Draw a polygon on the canvas.

Parameters

drawDesc

The rectangle descriptor.

points

The points used for drawing the polygon.


expect fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Pair<Short, Short>)

Draw a polygon on the canvas.

Parameters

drawDesc

The rectangle descriptor.

points

The points used for drawing the polygon. Each point consists of the following:

  1. xPos - Horizontal position

  2. yPos - Vertical position

actual fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Point)
actual fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Pair<Short, Short>)
actual fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Point)
actual fun drawPolygon(drawDesc: RectangleDescriptor, vararg points: Pair<Short, Short>)