Transparent ARGB hex value

前端 未结 7 1971
天命终不由人
天命终不由人 2020-11-28 17:16

The colors in this table is all not transparent. I guess the value for the A is set to FF.

What is the code for transparency?

For

7条回答
  •  情歌与酒
    2020-11-28 17:57

    Transparency is controlled by the alpha channel (AA in #AARRGGBB). Maximal value (255 dec, FF hex) means fully opaque. Minimum value (0 dec, 00 hex) means fully transparent. Values in between are semi-transparent, i.e. the color is mixed with the background color.

    To get a fully transparent color set the alpha to zero. RR, GG and BB are irrelevant in this case because no color will be visible. This means #00FFFFFF ("transparent White") is the same color as #00F0F8FF ("transparent AliceBlue"). To keep it simple one chooses black (#00000000) or white (#00FFFFFF) if the color does not matter.

    In the table you linked to you'll find Transparent defined as #00FFFFFF.

提交回复
热议问题