IsoColor
data class IsoColor @JvmOverloads constructor(val r: Double, val g: Double, val b: Double, val a: Double = 255.0)
Represents a color with RGB and HSL representations.
Renamed from Color to IsoColor to avoid conflicts with platform Color classes (e.g., android.graphics.Color, androidx.compose.ui.graphics.Color).
All RGBA channel values are in the range 0–255. The derived HSL properties are lazily computed: h is a normalized hue in 0–1 (not 0–360), s is saturation in 0–1, and l is lightness in 0–1.
Parameters
r
Red channel (0–255)
g
Green channel (0–255)
b
Blue channel (0–255)
a
Alpha channel (0–255, default 255 = fully opaque)
Constructors
Functions
Link copied to clipboard
Produces a lighter variant of this color by blending with lightColor and then increasing the HSL lightness by percentage.