Right now only the HEX value of the color picked is accessible to drupal. It would be nice to be able to get the RGBA values. Esp. for HTML5 colors.

If someone could point me in the right direction of what drupal function to change, I could figure the rest out.

Comments

plopesc’s picture

Hello Monstrfolk

It is a great Idea. However, I should think which is the better approach to implemment the alpha channel for both jquery_colorpicker form field and jquery_colorpicker field API.

Thanks for your collaboration.

plopesc’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Hello Monstrfolk

I was studying your issue and I found that the jquery_colorpicker plugin doesn't support alpha channel. Then, you can't describe the alpha channel value with the colorpicker.

The easiest option is to add another numeric field to your form to include the alpha channel value. On the other hand, we could implement another complex widget that includes both the jquery_colorpicker plugin and the alpha channel textfield. In the saving process,both values would be merged into an only RGBA value.

However, I don't know exactly what do you expect. Could you give more information to try to get the best approach?

Best Regards

Jaypan’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)