Tuesday, 21 June 2016

Android Alpha Table

In Android the colour could be set using the typical HEX colours, where the first two characters are the Red colour, the next two are the Green colour and the next two are the Blue colour (RGB). Beside this, optionally the user can specify the alpha value, which is the level of transparency of the colour. They are also hexadecimal values, which are attached to the beginning.  Here is the format:

#AARRGGBB

Here is a table of the alpha values used:

100% — FF
  95% — F2
  90% — E6
  85% — D9
  80% — CC
  75% — BF
  70% — B3
  65% — A6
  60% — 99
  55% — 8C
  50% — 80
  45% — 73
  40% — 66
  35% — 59
  30% — 4D
  25% — 40
  20% — 33
  15% — 26
  10% — 1A
    5% — 0D
    0% — 00

Source

More colours

No comments:

Post a Comment