Is there any opinion on having the ability to select "transparent" as a color? This could be configured when you first instantiate the plugin.
I have a need to select completely opaque or transparent (using RGB vs the transparent keyword in my case), but I could see others having a need to select more varied levels of opacity using RGBa.
What about having a transparency property in the options object passed in? It could take: false (default), "boolean" or "alpha"
false: Current Setup
"boolean": Add a "transparent" button which would cause colorpicker to return "transparent" as a keyword.
"alpha": Add an alpha range selector (0-100). Then an .a property would be added to the current RGB and HSB values to return RGBa or HSBa.
I definitely need the boolean transparency feature, but would anybody make use of an alpha transparency feature? Boolean would be pretty straightforward, but alpha has some issues. The resulting colors would only be accurate for RGBa and HSBa as hex doesn't support an alpha channel. Also I'm not sure if the alpha selector would be best as a range input (like the HSB/RGB inputs) or as a slider (like the hue bar).
Is there any opinion on having the ability to select "transparent" as a color? This could be configured when you first instantiate the plugin.
I have a need to select completely opaque or transparent (using RGB vs the transparent keyword in my case), but I could see others having a need to select more varied levels of opacity using RGBa.
What about having a transparency property in the options object passed in? It could take:
false
(default),"boolean"
or"alpha"
false
: Current Setup"boolean"
: Add a "transparent" button which would cause colorpicker to return "transparent" as a keyword."alpha"
: Add an alpha range selector (0-100). Then an.a
property would be added to the current RGB and HSB values to return RGBa or HSBa.I definitely need the boolean transparency feature, but would anybody make use of an alpha transparency feature? Boolean would be pretty straightforward, but alpha has some issues. The resulting colors would only be accurate for RGBa and HSBa as hex doesn't support an alpha channel. Also I'm not sure if the alpha selector would be best as a range input (like the HSB/RGB inputs) or as a slider (like the hue bar).