HsvColor¶
@Immutable
data class HsvColor(
val hue: Float,
val saturation: Float,
val value: Float,
val alpha: Float
)
An immutable colour representation using the Hue-Saturation-Value model with an alpha channel.
This representation is primarily intended for use with net.kernelpanicsoft.archie.gui.composables.input.ColorPicker, which operates natively in HSV space to avoid lossy round-trip conversions.
All component values are in the range 0.0, 1.0.
Example¶
Constructors¶
HsvColor¶
Types¶
Companion¶
object Companion
Properties¶
alpha¶
hue¶
saturation¶
val saturation: Float
value¶
Functions¶
toKColor¶
Converts this HSV colour to an equivalent KColor (ARGB).