Hack4Eugene / urban-pong-spectrum-2019

MIT License
0 stars 2 forks source link

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

Open sfoster opened 5 years ago

sfoster commented 5 years ago

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.

gandalf3 commented 5 years ago

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

sfoster commented 5 years ago

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