Skip to content

Instantly share code, notes, and snippets.

@facelessuser
Created September 12, 2022 20:41
Show Gist options
  • Save facelessuser/38f8d95b639309f226e53bf4e9302145 to your computer and use it in GitHub Desktop.
Save facelessuser/38f8d95b639309f226e53bf4e9302145 to your computer and use it in GitHub Desktop.
example
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