models/okhsv library

Classes

OkHsv
Represents a color in the HSV (Hue, Saturation, Value) color space. h: Hue, in range 0, 1 representing 0 to 360 degrees s: Saturation, in range 0, 1 v: Value, in range 0, 1 Example 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;