Checkmark

Thank you for your feedback

RTML - Colors

Learn about defining RTML colors.

Article ID: SLN18715

Operators that can contain expressions sometimes also take arguments. The BODY operator is one of this type. In this template, it takes an argument specifying the page background color:

Yellow ()
TITLE "A Colorful Greeting"
BODY background-color COLOR red 255
                            green 255
                            blue 0
TEXT "Yellow world!"

This template generates a page like the previous one, except that the background color is bright yellow.

The COLOR operator takes three arguments representing the red, green, and blue components of a color as numbers between 0 and 255 inclusive. (This convention, known as RGB format, will be familiar to graphic designers.)

See Also: