Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
plopescHello 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.
Comment #2
plopescHello 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
Comment #3
Jaypan CreditAttribution: Jaypan at Jaypan commented