Pen color is the color of the lines that make up the outline of a symbol (versus Fill, which describes the color that the symbol is filled with, and font, which describes the color of the text associated with the symbol, such as its name).
You may set the default pen color that a symbol is drawn with by using the PEN COLOR keyword in a List statement. The PEN COLOR keyword has three parameters which together define the resulting solid color. Each color parameter can have a value of 0 to 255.
Syntax
Value "X" depictions { PEN COLOR {X, Y, Z} }
where X, Y, and Z are a value from 0 through 255. The value X specifies how much red is contained in the color; the value Y specifies how much green is contained in the color; the value Z specifies how much blue is contained in the color.
So for example, {255 0 0} is pure red; {0 255 0} is pure green, and {0 0 255} is pure blue. Various other combinations can be specified to obtain respective color shadings.
Example
To specify that a computer symbol of type ‘laptop’ is by default drawn with red lines on a diagram, and that a computer symbol stereotyped as a ‘host’ is by default drawn with green lines, you would specify the following:
List "Computer Stereotypes"
{
Value "Laptop" depictions {diagram images\laptop.wmf menu images\laptop.bmp pen color {255, 0, 0} }
Value "Host" depictions {diagram images\host.wmf menu images\host.bmp pen color {0, 255, 0} }