HSLuv
HSLuv is a perceptually uniform colorspace.
Constants
EPSILON = 0.0088564516
KAPPA = 903.2962962
REF_U = 0.19783000664283
REF_V = 0.46831999493879
REF_Y = 1.0
VERSION = "0.1.0"
Instance methods
Converts a hexadecimal string to HSLuv, in h, s, l order
Converts an HPLuv color to a hexadecimal string.
Converts an HPLuv hsl color to an rgb array.
Converts an HSLuv color to a hexadecimal string.
Converts an HSLuv color to an rgb array.
Converts an LCh color to an rgb array.
length_of_ray_until_intersect(theta, line)
SourceScales, clamps, and rounds an rgb color array from [0, 1] to [0, 255]
Converts an rgb color to a hex color code - e.g. rgb_to_hex(0xff, 0xaa, 0x88) == "#ffaa88"
Converts an rgb color to an HPLuv hsl array.
Converts an rgb color to an HSLuv hsl array.
Converts an rgb color to an LCh array.