Created
April 21, 2022 03:33
-
-
Save facelessuser/01467194b71e17643869650565c51a52 to your computer and use it in GitHub Desktop.
CVD Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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