models/okhsv library
Classes
- OkHsv
-
Represents a color in the HSV (Hue, Saturation, Value) color space.
h: Hue, in range
0, 1representing 0 to 360 degrees s: Saturation, in range0, 1v: Value, in range0, 1Example usage: HSV hsv = srgbToOkhsv(RGB(0.5, 0.5, 0.5)); // Saturation and Value are used in calculations: double L_v = 1 - hsv.s * S_0 / (S_0 + T_max - T_max * k * hsv.s); double L = hsv.v * L_v;