Fooidge / PleaseJS

JavaScript Library for creating random pleasing colors and color schemes
2.28k stars 159 forks source link

Allow conversions from HSV where H >= 360. #54

Closed jeremypepper closed 1 year ago

jeremypepper commented 9 years ago

This is needed because the randomizer would sometimes generate a hue value of 360 and give invalid colors when converted.

Test case: var please = require("please"); var color = please.make_color({ base_color:"#c9181e", seed: "a" })[0]; console.log("%c HELLO " + color , 'background: ' + color);