Expand description
Number and color encoding traits, types and standards.
Some color spaces, particularly RGB, may be encoded in more than one way and may have more than one standard. These encodings and standards are represented as type parameters in Palette, as a form of type branding, to prevent accidental mixups.
Modules§
- adobe
- The Adobe RGB (1998) standard.
- gamma
Deprecated - Gamma encoding.
- linear
- Linear encoding
- p3
- The P3 color space(s) and standards.
- prophoto
- The ProPhoto RGB standard.
- rec_
standards - The ITU-R Recommendation BT.2020 (Rec. 2020) and BT.709 (Rec. 709) standards and their associated transfer function.
- srgb
- The sRGB standard.
Structs§
- Adobe
Rgb - The Adobe RGB (1998) (a.k.a. opRGB) color space and standard.
- DciP3
- The theatrical DCI-P3 standard.
- DciP3
Plus - The Canon DCI-P3+ color space and standard.
- Display
P3 - The Display P3 standard.
- F2p2
Deprecated - Represents
2.2f64. - From
Linear Lut - Lookup table from linear to gamma encoded values.
- Gamma
Deprecated - Gamma encoding.
- Into
Linear Lut - Lookup table from gamma encoded to linear values.
- Linear
- A generic standard with linear components.
- P3Gamma
- A gamma 2.6 transfer function used by some P3 variants
- ProPhoto
Rgb - The ProPhoto RGB standard and color space with gamma 2.2 transfer function.
- Rec709
- The Rec. 709 standard, color space, and transfer function (
RecOetf). - Rec2020
- The Rec. 2020 standard, color space, and transfer function (
RecOetf). - RecOetf
- The opto-electronic transfer function used in standard dynamic range (SDR)
standards by the ITU-R such as
Rec709andRec2020. - Srgb
- The sRGB standard, color space, and transfer function.
Traits§
- From
Linear - A transfer function from linear space.
- GetLut
Builder - A transfer function that can produce a gamma lookup table.
- Into
Linear - A transfer function to linear space.