Module colorspace

Source

Structsยง

A98Rgb
๐ŸŒŒ The Adobe RGB (1998) color space.
Aces2065_1
๐ŸŒŒ The ACES2065-1 color space.
AcesCg
๐ŸŒŒ The ACEScg color space.
DisplayP3
๐ŸŒŒ The Display P3 color space, often used for wide-gamut displays.
Hsl
๐ŸŒŒ The HSL color space
Hwb
๐ŸŒŒ The HWB color space
Lab
๐ŸŒŒ The CIELAB color space
Lch
๐ŸŒŒ The cylindrical version of the Lab color space.
LinearSrgb
๐ŸŒŒ The linear-light RGB color space with sRGB primaries.
Oklab
๐ŸŒŒ The Oklab color space, intended to be a perceptually uniform color space.
Oklch
๐ŸŒŒ The cylindrical version of the Oklab color space.
ProphotoRgb
๐ŸŒŒ The ProPhoto RGB color space.
Rec2020
๐ŸŒŒ The Rec. 2020 color space.
Srgb
๐ŸŒŒ The standard RGB color space.
XyzD50
๐ŸŒŒ The CIE XYZ color space with a 2ยฐ observer and a reference white of D50.
XyzD65
๐ŸŒŒ The CIE XYZ color space with a 2ยฐ observer and a reference white of D65.

Enumsยง

ColorSpaceLayout
The layout of a color space, particularly the hue component.

Constantsยง

EPSILON ๐Ÿ”’
KAPPA ๐Ÿ”’
LAB_SRGB_TO_XYZ ๐Ÿ”’
LAB_XYZ_TO_SRGB ๐Ÿ”’
OKLAB_LAB_TO_LMS ๐Ÿ”’
OKLAB_LMS_TO_LAB ๐Ÿ”’
OKLAB_LMS_TO_SRGB ๐Ÿ”’
OKLAB_SRGB_TO_LMS ๐Ÿ”’

Traitsยง

ColorSpace
The main trait for color spaces.

Functionsยง

hsl_to_rgb ๐Ÿ”’
Convert HSL to RGB.
hwb_to_rgb ๐Ÿ”’
Convert HWB to RGB.
lab_to_lch ๐Ÿ”’
Rectangular to cylindrical conversion.
lch_to_lab ๐Ÿ”’
Cylindrical to rectangular conversion.
lin_to_srgb ๐Ÿ”’
rgb_to_hsl ๐Ÿ”’
Convert RGB to HSL.
rgb_to_hwb ๐Ÿ”’
Convert RGB to HWB.
srgb_to_lin ๐Ÿ”’