13.5 Colors

In the gEDA/gaf schematic and symbol file format colors are specified via an integer index. The relationship between integer and color is based on object type. Each object type typically has one or more colors. Here is a table of color index to object type:

IndexObject type
0BACKGROUND_COLOR
1PIN_COLOR
2NET_ENDPOINT_COLOR
3GRAPHIC_COLOR
4NET_COLOR
5ATTRIBUTE_COLOR
6LOGIC_BUBBLE_COLOR
7DOTS_GRID_COLOR
8DETACHED_ATTRIBUTE_COLOR
9TEXT_COLOR
10BUS_COLOR
11SELECT_COLOR
12BOUNDINGBOX_COLOR
13ZOOM_BOX_COLOR
14STROKE_COLOR
15LOCK_COLOR
16OUTPUT_BACKGROUND_COLOR
17FREESTYLE1_COLOR
18FREESTYLE2_COLOR
19FREESTYLE3_COLOR
20FREESTYLE4_COLOR
21JUNCTION_COLOR
22MESH_GRID_MAJOR_COLOR
23MESH_GRID_MINOR_COLOR

The actual color associated with the color index is defined on a per tool bases. Objects are typically assigned their corresponding color index, but it is permissible (sometimes) to assign other color index values to different object types.