drawLine

external fun drawLine(xStart: Float, yStart: Float, xEnd: Float, yEnd: Float, color: Int = 0, thickness: Float = 1.0f)

Draws a line.

Parameters

xStart

x position for the starting point of the line.

yStart

y position for the starting point of the line.

xEnd

x position for the ending point of the line.

yEnd

y position for the ending point of the line.

color

Color of the shape.

thickness

Thickness of the shape.