Why the leading “#FF” in hexadecimal color values?

纵饮孤独 提交于 2019-12-01 05:44:00

That may be the alpha component of the color, which represents the opacity (00 -> transparent, FF -> opaque).

MSDN seems to agree with this : http://msdn.microsoft.com/en-us/library/bb980062(VS.95).aspx

16-bit hexadecimal, alpha -- #AARRGGBB

I believe the leading FF is the Alpha. 255 (or FF) being 100% opaque, and 00 would be transparent.

the 'extra' ff is an alpha value (degree of transparency). If you only have 3 hex pairs, the alpha value is assumed to be ff (no transparency). However, if you compare #335A7F39 and #FF5A7F39 you should see a difference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!