Skip to content

Commit

Permalink
List supported combinations for color space conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jul 10, 2024
1 parent a2f4d22 commit ebef899
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tinycss2/color4.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ def to(self, space):
``None`` coordinates are always transformed into ``0`` values.
Many space combinations are not supported.
Here are the supported combinations:
- from hsl and hwb to srgb;
- from lab and lch to xyz-d50;
- from oklab and oklch to xyz-d65;
- from xyz-d50, xyz-d65, lch, oklab and oklch to lab.
"""
coordinates = tuple(coordinate or 0 for coordinate in self.coordinates)
Expand Down

0 comments on commit ebef899

Please sign in to comment.