3 ms·
Create a color fence. You can create a polygonal fence that describes your preferred color set and calculate an intersection from the hue value in HSV. If my hu
by jaunkst 12y ago
Create a color fence. You can create a polygonal fence that describes your preferred color set and calculate an intersection from the hue value in HSV. If my hue is 320, then I could find a nice shade of orange/red along the polygonal fence. This should give you controlled useable colors. The intersection length is the value, and you could store variable saturation on the fence points if you want to control the level of saturation.
https://www.evernote.com/shard/s6/sh/c48da69a-7056-4ee0-9bcf-60ce346ca67f/6c1dd47660961c12d8ba91eefc13b7b5 https://www.evernote.com/shard/s6/sh/c48da69a-7056-4ee0-9bcf...
- jaunkst 12y agoHere is a codepen example, this code was thrown together. You can add modify the fence line in the colorFence array http://codepen.io/anon/pen/ycqpI?editors=101 http://codepen.io/anon/pen/ycqpI?editors=101