line

abstract fun line(x1: Float, y1: Float, x2: Float, y2: Float, color: Color, width: Float)

Draws a line between two points with the specified color and width.

Parameters

x1

The x-coordinate of the starting point.

y1

The y-coordinate of the starting point.

x2

The x-coordinate of the ending point.

y2

The y-coordinate of the ending point.

color

The color of the line.

width

The width of the line.