ColorGradient

class ColorGradient(colors: Pair<Float, Color>, n: Int = DEFAULT_N, toLinear: Boolean = false)

Author

Colton Daily

Constructors

Link copied to clipboard
fun ColorGradient(vararg colors: Color, n: Int = DEFAULT_N)
Link copied to clipboard
fun ColorGradient(vararg colors: Pair<Float, Color>, n: Int = DEFAULT_N, toLinear: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getColor(value: Float, min: Float = 0.0f, max: Float = 1.0f): Color
Link copied to clipboard
fun getColorInterpolated(value: Float, result: MutableColor, min: Float = 0.0f, max: Float = 1.0f): MutableColor
Link copied to clipboard