I am using Chart.js to create some donut charts for an app i'm building. I want the chart to be based on a single color like #5a2a97.
Then I'm thinking that I want to use HSB (i'm getting this term from photoshop color sliders) to dynamically change the S and B values to a random percentage between 0 and 100%.
This would result in a color based on the original hex, but dynamic saturation and value.
then i need to convert it back to a hex code for chart.js.
I know this sounds crazy, but does anyone have any ideas?
I figured it out...
Chart.js accepts HSV values...
so i declare a jquery variable with the primary hue like: 266. Then i just generate a random number between 1 - 100 and dynamically create the hsv string from the numbers like so...