DocumentationDynamic Media Image Serving and Rendering API

Color values

Last update: March 4, 2022
  • Topics:
  • Dynamic Media Classic,SDK/API

CREATED FOR:

  • Developer
  • User

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, grayColor component value (0...255, decimal integer).
hex6Packed six-digit hexadecimal RGB color value (RRGGBB).
hex2Packed two-digit hexadecimal gray color value (0…FF).

Examples

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)

See also

color=, bgc=, grout=

recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49