+ 3

How can I make a hexadecimal number (e.g. #FF0000) transparent?

7th Jan 2016, 4:29 PM
Patrick G.
Patrick G. - avatar
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%]
12th Jul 2016, 1:19 AM
Kardhyr
Kardhyr - avatar
+ 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.
20th Jun 2016, 2:44 AM
DevCoder (John Sullivan)
DevCoder (John Sullivan) - avatar