HSLColor

@Serializable
data class HSLColor(val hue: Double, val saturation: Double, val lightness: Double, val alpha: Double = 1.0)

A color using hue, saturation, and lightness color spaces

Constructors

Link copied to clipboard
constructor(hue: Double, saturation: Double, lightness: Double, alpha: Double = 1.0)

Properties

Link copied to clipboard
val alpha: Double = 1.0

the alpha channel in a range between 0.0 and 1.0

Link copied to clipboard

Gets the KalugaColor equivalent to this HSLColor

Link copied to clipboard
val hue: Double

the hue channel in a range between 0.0 and 1.0

Link copied to clipboard

the lightness channel in a range between 0.0 and 1.0

Link copied to clipboard

the saturation channel in a range between 0.0 and 1.0