-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show gamut in sliders #226
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for oddcontrast ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
<style lang="scss"> | ||
@use 'config'; | ||
|
||
[data-field='color-gamut'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copy pasted from SpaceSelect- should we make this a pattern somewhere?
color, | ||
channel, | ||
range, | ||
gamut, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is somewhat computationally slow. I toyed around with caching results, but the cache quickly grew to 12 Mbs in about 30 seconds of heavy usage 🫨 . I could likely do some more optimization if it is slow on slower machines.
Description
Adds gamut boundaries to the sliders.
Also removes opacity from color channel sliders, and adds a checkerboard background to the opacity slider.
Related Issue(s)
#225
To test
Change gamut option, play with sliders.
Show me
https://deploy-preview-226--oddcontrast.netlify.app/
Todo