brangerbriz / liBB.js

A JavaScript library/framework for creating interactive && generative apps + installations in/out of the browser
http://libb.brangerbriz.com/
GNU General Public License v3.0
1 stars 2 forks source link

BB.Color: funky hsv behavior... #12

Closed nbriz closed 8 years ago

nbriz commented 8 years ago

sometimes the hex strings of the scheme colors doesn't generate correctly ( returns 5 hex values instead of 6 )... for now use .rgb or .rgba values

nbriz commented 8 years ago

ok, so now that the color schemes generated new color objects that was fixed... but there's a new bug when generating random values ( using createScheme('random') ) where if u specify a hue like this:

color.createScheme('random',{ hue: 200 });

sometimes ( not often ) u get a random color not with that hue?

nbriz commented 8 years ago

ok scratch that... not xactly sure what the issue is... i have a funky feeling about the .hsv2rgb() method, the random schemes still occasionally spit out werd stuff ( though i have a commented hack/fix in there for that now )... still getting strange behavior when u adjust saturation ( or value ) at certain values it seems to effec the other hsv vals ???

nbriz commented 8 years ago

fixed ^___^ all done