AN 8-bit Android HEx is called aRGB. ARGB values ββare usually expressed using 8 hexadecimal digits, each pair of hexadecimal digits representing the Alpha, Red, Green, and Blue channel values, respectively. For example, 80FFFF00 represents a 50.2% opaque (without preliminary multiplication) yellow color. A hexadecimal value of 128 in decimal represents a value of 50.2% alpha, since 128 is approximately 50.2% of the maximum value of 255 (FF hex); to continue decoding the value 80FFFF00, the first FF represents the maximum value that may be red; the second FF is similar to the previous one, but to green; the final value of 00 is the minimum value that blue can have (in fact, not blue). Therefore, red + green gives a yellow color. In cases where alpha is not used, this can be reduced to 6 digits RRGGBB, so it was chosen to put alpha in the upper bits. Depending on the context, a 0x sign or a number (#) [1] is placed before the hexadecimal digits.
Terry Miller Nov 22 '15 at 12:01 2015-11-22 12:01
source share