Skip to content

Instantly share code, notes, and snippets.

@facelessuser
Created April 21, 2022 03:33
Show Gist options
  • Save facelessuser/01467194b71e17643869650565c51a52 to your computer and use it in GitHub Desktop.
Save facelessuser/01467194b71e17643869650565c51a52 to your computer and use it in GitHub Desktop.
CVD Test
inputs = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']
colors = Color(inputs[0]).steps(inputs[1:], steps=20, space='srgb')
colors
ColorRow()
[c.cvd('achromatopsia').clip() for c in colors]
ColorRow()
[c.cvd('brettel-protan').clip() for c in colors]
ColorRow()
[c.cvd('brettel-deutan').clip() for c in colors]
ColorRow()
[c.cvd('brettel-tritan').clip() for c in colors]
ColorRow()
[c.cvd('vienot-protan').clip() for c in colors]
ColorRow()
[c.cvd('vienot-deutan').clip() for c in colors]
ColorRow()
[c.cvd('vienot-tritan').clip() for c in colors]
ColorRow()
[c.cvd('machado-protan').clip() for c in colors]
ColorRow()
[c.cvd('machado-deutan').clip() for c in colors]
ColorRow()
[c.cvd('machado-tritan').clip() for c in colors]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment