|
aiSee has a color map of 256 colors of which 254 can be used. The first 32 colors (index 0–31) of the color map are the default colors. These colors can be specified by their color map index number or by name. All other colors can only be specified by their color map index number. A color map entry is changed by using the GDL attribute
colorentry 32: 210 218 255 // alice blue colorentry 33: 205 92 92 // indian red colorentry 34: 46 139 87 // sea green If blue, a default color, is to be used, then the specification
can be done via However, the default colors can be overwritten. For example, colorentry 1: 210 218 255 // alice blue colorentry 2: 205 92 92 // indian red colorentry 3: 46 139 87 // sea green causes the default colors |
![]() ![]() ![]() ![]() ![]() |
The table below shows the color codes of the default color map along with the corresponding RGB triples.
|
|
The ASCII formfeed character
\f followed by two digits signifying a color changes
the color for the characters following in a string, thus enabling the first 100
colors of the color map to be accessed. For example, the string
"\f02R\f29A\f14I\f03N\f06B\f01O\f12W\f31 NORMAL"
will be visualized as follows:
RAINBOW NORMAL
This works for all kinds of text (node/edge/subgraph labels, additional information windows), independent of the font used.
SVG does not support specifying an image background color. However, you can work around this problem by artificially enlarging the layout plane as follows:
Set the top-level graph attributes
xbase and
ybase
to high values, for example:
xbase:1000 ybase:1000
Export the graph to SVG.
Open the SVG file with a text editor and manually
adjust the four values of the viewBox attribute. This attribute is to
be found in the third line of the SVG file.
Overwriting default colors (cf. above) also comes in handy
for changing the color of aiSee's additional
node information windows. This color is not bound to the RGB constant
255 255 255, but rather to the value of
the first entry of the color map (which happens to be
255 255 255 by default).
Thus, for example, specifying
colorentry 0: 210 218 255 // white is now alice blue
sets the background color of all additional node information
windows to alice blue. Of course, this color now also appears everywhere else
where the color white is used. Thus, you might wish to further
specify:
colorentry 32: 255 255 255 // 32 is now white color:32 node.color:32 foldnode.color:32 // graph background, nodes, and // summary nodes are still white
Similarly, the information windows’ text/border color is not
bound to the RGB constant
|
![]() |