Color: DY command |
|
The DY (dye) command is used to change color of the print to one of 16 predefined colors. However, it is recommended that you use the FG and BG commands instead of the DY command. The menu support for color inserts FG and BG commands, not DY commands. If a document contains both FG/BG and DY commands, there will sometimes be errors. If you find errors in a document that contains DY commands, you should replace them with FG and/or BG commands.
The DY command uses two variables to specify the color of the font and the background:
DY 0,13 will change the font to black DY 1,13 will change the font to blue DY 2,13 will change the font to dark yellow DY 3,13 will change the font to gray DY 4,13 will change the font to aqua DY 5,13 will change the font to light green DY 6,13 will change the font to violet DY 7,13 will change the font to dark red DY 8,13 will change the font to light gray DY 9,13 will change the font to green DY 10,13 will change the font to yellow DY 11,13 will change the font to red DY 12,13 will change the font to purple DY 13,13 will change the font to white (invisible on a white background) DY 14,13 will change the font to orange DY 15,13 will change the font to green-blue The second number in the DY command (13), indicates that you want a white background (13 is the number for white). If you substitute one of the other numbers for 13, the background color will change on screen, but it will not print in any color except white.
The DY command is also used by Ibidem as part of its record identification system, and you may see DY commands in your document that have been inserted by Ibidem. See Colors Used for Citations.
See also:
|