I have this code to color text and add transparency it
$draw->setFillColor('rgba(0,0,255,0.5)');
It's working perfectly but I want to do the same thing with hex format.
How can I remplace 'rgba(0,0,255,0.5)
to #0000FF
... I don't know how can I add the transparency parameter.