Skip to content

Instantly share code, notes, and snippets.

@facelessuser
Last active July 25, 2022 04:16
Show Gist options
  • Save facelessuser/af37273476547580d0227636f66e1838 to your computer and use it in GitHub Desktop.
Save facelessuser/af37273476547580d0227636f66e1838 to your computer and use it in GitHub Desktop.
Gamut Issues CSS
print('---- Gamut Mapping with Oklch ----')
class Color2(Color):
FIT = "oklch-chroma"
colors = ['green', 'blue']
Color2.interpolate(colors, space="lab")
Color2.interpolate(colors, space="lch")
Color2.interpolate(colors, space="oklab")
Color2.interpolate(colors, space="oklch")
print('---- Gamut Mapping with CIE LCH ----')
Color.interpolate(colors, space="lab")
Color.interpolate(colors, space="lch")
Color.interpolate(colors, space="oklab")
Color.interpolate(colors, space="oklch")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment