🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

PointMode

Source set: Common
public class PointMode internal constructor(@Suppress("unused") private val value: Int)

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

Points

Source set: Common
public val Points: PointMode

Draw each point separately.

If the Paint.strokeCap is StrokeCap.Round, then each point is drawn as a circle with the diameter of the Paint.strokeWidth, filled as described by the Paint (ignoring Paint.style).

Otherwise, each point is drawn as an axis-aligned square with sides of length Paint.strokeWidth, filled as described by the Paint (ignoring Paint.style).

Lines

Source set: Common
public val Lines: PointMode

Draw each sequence of two points as a line segment.

If the number of points is odd, then the last point is ignored.

The lines are stroked as described by the Paint (ignoring Paint.style).

Polygon

Source set: Common
public val Polygon: PointMode

Draw the entire sequence of point as one line.

The lines are stroked as described by the Paint (ignoring Paint.style).