AbstractStaticbalanceStaticbalanceApply white adaptation. Map a color from a white point to a target white point.
The color with the white mapped.
StaticisCheck if the color is inside the 2D chromaticity polygon (xy coordinates). Uses the Ray-Casting algorithm (Even-Odd Rule).
True if color is inside the gamut polygon (or if gamut is unbound).
StaticisChecks if the color is inside the 3D volume defined by the gamut primaries and luminance limits. NOTE: This checks a Cylinder volume. It does not account for the physical fact that max luminance decreases with saturation (the "Tent" shape).
True if color is inside the defined volume.
StaticmapMaps the color to fit inside its own SDR gamut using Oklch chroma reduction.
The color to map (e.g., a ProPhoto color).
OptionallimitAsHdr: booleanWhehter to consider HDR limits instead of SDR limits.
The mapped color, fitted within the limits.
StatictransformMap a color to a target color space, mapping also its white point. The steps are the following:
The color to map.
The target color space.
Optionalmethod: "bradford" | "cat02" | "vonKries" | "xyzScaling"The color adaptation method.
StatictransformMap a color to a target color space, mapping also its white point. The steps are the following:
The color to map.
The target color space.
Optionalmethod: "bradford" | "cat02" | "vonKries" | "xyzScaling"The color adaptation method.
Class for functions regarding color corrections.