Colors are specified by name as they appear in the dialog color palette. The names must be enclosed in double quotes, for example, "Ocean Green"
Alternatively, a color is specified using the special syntax:
" Rxxx Gyyy Bzzz"
where xxx, yyy, and zzz specify a red, green, and blue color component respectively. Each color component can range from 0 to 255.
For example:
"R0 G0 B0" |
All components are 0, resulting in black |
"R0 G255 B0" |
Pure green |
"R255 G255 B255" |
All components are at full intensity resulting in bright white |
See Also