bebraw / colorjoe

Scaleable color picker with touch and AMD support (MIT)
http://bebraw.github.io/colorjoe/
MIT License
568 stars 68 forks source link

Feature: allow transparent (null) values #39

Open sampotts opened 7 years ago

sampotts commented 7 years ago

I couldn't work out a way to allow/set a transparent color - i.e. a null value. The colorpicker simply reverts back to #000000 due to this: https://github.com/bebraw/colorjoe/blob/master/src/colorjoe.js#L245

I'll have a bash and raise a PR if that's ok?

Cheers 👍

bebraw commented 7 years ago

Yeah, PR welcome.