Module color

Source

Functions§

chromify_srgb
Preserves the luma of one color while changing its chromaticity to match the other
hsv_to_rgb
Convert hsv to rgb. Expects h [0, 360], s [0, 1], v [0, 1]
linear_to_srgb
linear_to_srgba
rgb_to_hsv
Convert rgb to hsv. Expects rgb to be [0, 1].
rgb_to_xyy
Convert linear rgb to CIExyY
rgb_to_xyz
Convert linear rgb to CIEXYZ
saturate_srgb
srgb_to_linear
directly converted from ‘vec3 srgb_to_linear(vec3 srgb)’ function in ‘srgb.glsl’
srgb_to_linear_fast
This function is optimized for speed over perfect accuracy
srgba_to_linear
xyy_to_rgb
Convert to CIExyY to linear rgb