Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Show gamut in sliders #226

wants to merge 7 commits into from

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Dec 10, 2024

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

  • Design- Add border to slider?
  • Design- Abstract pattern from SpaceSelect and GamutSelect?

Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for oddcontrast ready!

Name Link
🔨 Latest commit fdecc3b
🔍 Latest deploy log https://app.netlify.com/sites/oddcontrast/deploys/6759f5be93307f0008868092
😎 Deploy Preview https://deploy-preview-226--oddcontrast.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

<style lang="scss">
@use 'config';

[data-field='color-gamut'] {
Copy link
Contributor Author

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,
Copy link
Contributor Author

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.

@jamesnw jamesnw requested a review from jgerigmeyer December 11, 2024 20:49
@jamesnw jamesnw linked an issue Dec 16, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show gamut ranges on sliders
3 participants