Color values for color=
and bgc=
attributes may be specified using either a list of decimal, comma-separated component values, or a hex notation, similar to HTML.
color |
{ {red , green , blue} | gray } | { [ 0x ] hex6 } | { 0xhex2 } |
red, green, blue, gray |
Color component value (0...255, decimal integer). |
hex6 |
Packed six-digit hexadecimal RGB color value (RRGGBB). |
hex2 |
Packed two-digit hexadecimal gray color value (0…FF). |
Some examples of valid color specifiers and their corresponding RGB color value interpretation:
0,100,200 |
(0,100,200) |
128 |
(128,128,128) |
0x010203 |
(1,2,3) |
00b1c2 |
(160,177,194) |