nornagon / thistle

JavaScript HSL color picker
BSD 2-Clause "Simplified" License
20 stars 4 forks source link

Support hsla #1

Open georules opened 11 years ago

georules commented 11 years ago

I love this picker. I've been working on integrating it into enjalot's inlet (https://github.com/georules/Inlet/tree/thistle)

Do you think it would take a lot to add a slider for alpha channel and by default output hsla from getCSS()? Are there considerations I should be aware of if we did this? I might work on this if you are interested in pull requests.

nornagon commented 11 years ago

Hey, awesome! I remember looking at Inlet a while ago when I was trying to find a nice color picker -- it didn't satisfy, so here we are :)

I think adding an alpha slider would not be too hard -- but make sure it's possible to instantiate a picker without one.

georules commented 11 years ago

Ha, full circle :smile: Agreed, I think it would be good to save the space on the UI if the alpha channel isn't needed. I'll poke at your code this weekend and see what I can do.