OkHsv

data class OkHsv(val h: Float, val s: Float, val v: Float)

OkHSV representation with normalized, user-friendly ranges.

  • h: hue in degrees 0, 360

  • s: saturation in percent 0, 100

  • v: value/brightness in percent 0, 100

Constructors

Link copied to clipboard
constructor(h: Float, s: Float, v: Float)

Properties

Link copied to clipboard
val h: Float
Link copied to clipboard
val s: Float
Link copied to clipboard
val v: Float

Functions

Link copied to clipboard
fun toColor(alpha: Float = 1.0f): Color