Customizing the metamodel > Keywords for USRPROPS > FILL COLOR
  
FILL COLOR
The FILL COLOR keyword in a List statement specifies the default fill color for a symbol.
The FILL COLOR command can also be used to color-code matrix cells. If you specify a stereotype property for the definition of the intersecting cell of a matrix, and then specify colors of the values in that list, the matrix cell reflects the colors of the values that are set.
Syntax
Value "X" depictions { fill color {X, Y, Z} }
X, Y, and Z define the color by using the RGB standard. Each is a value from 0 through 255. X specifies how much red is in the color; Y specifies how much green is in the color; Z specifies how much blue is in the color.
For example, {255 0 0} is pure red, {0 255 0} is pure green, and {0 0 255} is pure blue.
Example
To specify that a computer symbol of type ‘laptop’ is red by default, and that a computer symbol stereotyped as a ‘host’ is green by default, specify these entries:
List "Computer Stereotypes"
{
Value "Laptop"
depictions
{ diagram images\laptop.wmf
menu images\laptop.bmp
fill color {255, 0, 0}
}
Value "Host"
depictions {
diagram images\host.wmf
menu images\host.bmp
fill color {0, 255, 0}
}
}
See also
FONT COLOR
PEN COLOR
Keywords for USRPROPS