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

Figure out a way to constrain or bias color wheel #13

Open
sfoster opened this issue May 24, 2019 · 2 comments
Open

Figure out a way to constrain or bias color wheel #13

sfoster opened this issue May 24, 2019 · 2 comments

Comments

@sfoster
Copy link
Collaborator

sfoster commented May 24, 2019

I think it would be nice to be able to constrain the color picker to e.g. an autumnal palette, or predominantly greens or blues for an underwater vibe. We currently just use the full 360 degrees of the HSL color space and directly map the angle to hue, but could presumably put a function in front of that to produce different results given an angle.

@sfoster sfoster changed the title Figure out a way to constrain or bia color wheel Figure out a way to constrain or bias color wheel May 24, 2019
@gandalf3
Copy link
Collaborator

Perhaps we could consider drawing the gradient with a canvas or something like that, if we want to change it on the fly?

@sfoster
Copy link
Collaborator Author

sfoster commented Jun 19, 2019

I am already doing that actually, I ended up not using the graphic we demoed with. See the renderColorWheel function: spectrum-client/htdocs/assets/colorwheel.js#L36

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

No branches or pull requests

2 participants