GradientColorAndPosition

data class GradientColorAndPosition(val color: Int, val position: Float)

A definition for a position and its corresponding color in a gradient.

Constructors

Link copied to clipboard
fun GradientColorAndPosition(color: Int, position: Float)

Properties

Link copied to clipboard
val color: Int

The sRGB colors (including alpha) to be distributed along the gradient

Link copied to clipboard

The relative positions 0..1 of each corresponding color in the colors array. If this is null, the the colors are distributed evenly along the gradient