Skip to main content

Module gamut

Module gamut 

Source
Expand description

P7.2 — Gamut / object-colour solid + closest-point gamut mapping. P7.2 — Gamut / object-colour solid + closest-point gamut mapping.

Enums§

GamutError
Gamut mapping error.

Functions§

gamut_map_clamp
Map an out-of-gamut colour to the closest in-gamut colour.
gamut_map_idempotent
Interior idempotence: an in-gamut colour maps to itself.
is_in_gamut
Check if a colour is in the sRGB gamut (all linear sRGB channels in [0,1]).
linear_rgb_is_in_gamut
Check if a linear sRGB colour is in gamut.
linear_srgb_to_xyz
Convert linear sRGB to CIE XYZ (inverse of xyz_to_linear_srgb).