Created
September 12, 2022 20:41
-
-
Save facelessuser/38f8d95b639309f226e53bf4e9302145 to your computer and use it in GitHub Desktop.
example
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.steps(inputs, steps=10, space='srgb') | |
HtmlRow(colors) | |
HtmlRow([c.filter('brightness', 0.5).clip() for c in colors]) | |
HtmlRow([c.filter('saturate', 0.5).clip() for c in colors]) | |
HtmlRow([c.filter('contrast', 1.2).clip() for c in colors]) | |
HtmlRow([c.filter('opacity', 0.5).clip() for c in colors]) | |
HtmlRow([c.filter('invert', 1).clip() for c in colors]) | |
HtmlRow([c.filter('hue-rotate', 90).clip() for c in colors]) | |
HtmlRow([c.filter('sepia', 1).clip() for c in colors]) | |
HtmlRow([c.filter('grayscale', 1).clip() for c in colors]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment