Module color.p3
Display-P3 encoded and linear-light values.
Display-P3 uses the sRGB transfer curve with a wider D65 gamut. Conversions are explicit and preserve out-of-gamut values; no clipping or gamut mapping is performed.
Functions
| Name | Description |
|---|---|
toDisplayP3(value)
|
Converts linear Display-P3 to encoded Display-P3. |
toDisplayP3(value)
|
Converts encoded sRGB to encoded Display-P3 through XYZ D65. |
toLinear(value)
|
Converts encoded Display-P3 to linear Display-P3. |
toLinearDisplayP3(value)
|
Converts XYZ D65 to linear Display-P3. |
toLinearDisplayP3(value)
|
Converts linear-light sRGB to linear Display-P3 through XYZ D65. |
toLinearSRgb(value)
|
Converts linear Display-P3 to linear-light sRGB through XYZ D65. |
toSRgb(value)
|
Converts encoded Display-P3 to encoded sRGB through XYZ D65. |
toXyzD65(value)
|
Converts linear Display-P3 to XYZ D65. |