models/okhsl library
Classes
- OkHsl
-
Represents a color in the HSL (Hue, Saturation, Lightness) color space.
h: Hue, in range
0, 1representing 0 to 360 degrees s: Saturation, in range0, 1l: Lightness, in range0, 1Example usage: HSL hsl = srgbToOkhsl(RGB(0.5, 0.5, 0.5)); // Hue is used in trigonometric functions: double a_ = math.cos(2 * math.pi * hsl.h); double b_ = math.sin(2 * math.pi * hsl.h);