Function toSRgb
Converts HSV to encoded sRGB without clipping or gamut mapping.
Example
const red = SRgbd(1.0, 0.0, 0.0) .toHsv;
assert(red .h == 0.0);
assert(red .s == 1.0);
assert(red .v == 1.0);
const gray = SRgbd(0.4, 0.4, 0.4) .toHsv;
assert(gray .h == 0.0);
assert(gray .s == 0.0);
assert(gray .v == 0.4);
Example
const color = Hsvd(-240.0, 1.0, 1.0) .toSRgb;
assert(color .r == 0.0);
assert(color .g == 1.0);
assert(color .b == 0.0);