Skip to content

Commit 79a2c24

Browse files
committed
Update XYB description
1 parent da5624d commit 79a2c24

File tree

1 file changed

+9
-2
lines changed
  • docs/src/markdown/colors

1 file changed

+9
-2
lines changed

docs/src/markdown/colors/xyb.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,15 @@ computationally efficient decoding.
3333

3434
//// tip | Chroma/Luma Adjustments
3535
Per the creator, the default subtracts the Y component from the B component which makes Y function as lightness and X
36-
and Y like Lab a and b. When X=Y=0, the color is achromatic. You may find other implementations do not do this only
37-
because it is not documented well.
36+
and B will function similar to Lab 'a' and 'b' components. When X=Y=0, the color is achromatic.
37+
38+
You may find other implementations may not do this and store the colors without this operation. It may be that in real
39+
world use it is not stored in this way. If desired, you can add Y to B to get the color exactly as specified in the
40+
white paper.
41+
42+
While in this configuration the color operates in a Lab-like way, but the scaling of X and B is quite different not
43+
making it practical to convert this to a LCh-like space for reasonable hue values. To do so, you would need to scale X
44+
to a similar order of magnitude compared to B (maybe a factor of 10).
3845
////
3946

4047
[Learn more](https://ds.jpeg.org/whitepapers/jpeg-xl-whitepaper.pdf).

0 commit comments

Comments
 (0)