XyztoLab
Color
stable
Convert a CIE XYZ (D65) colour to CIE L*a*b* by applying the CIELAB forward transform. Used to perform perceptually uniform lightness adjustments (lighten/darken).
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- xyzrequisTXYZ
- CIE XYZ tristimulus tuple [X, Y, Z] normalised to the D65 illuminant.
API
Valeur de retour
La valeur retournée par cet util.
- CIE L*a*b* triplet as a tuple [L, a, b]. L in [0, 100], a and b typically in [-128, 127].
Usage
Exemples
Extraits de code prêts à coller.
XYZ to Lab