+ 3
How can I make a hexadecimal number (e.g. #FF0000) transparent?
3 Antworten
+ 3
use RGBA. EX: (2A, 35, 18, 1)
You'll need to define the 3 colors' values and a 4th parameter will be the alpha channel that's should be between 0~1, like 0.5 (50%).
RGB #FFAACC
RGBA = (FF, AA, CC, 0.2)
[alpha = 20%]
+ 1
I'm not sure what you mean. Hexadecimal color codes are just a way to represent colors, not transparency. To do that I think you have to use RGBA (red green blue alpha) where the "A" refers to the opacity. There is another version i don't recall but i don't think hexadecimal had such an option.