The color argument may be any of the standard named GRASS colors, or and RGB (red, green, blue) triplet. An RGB triplet must have the form <num>:<num>:<num> where num is between 0 and 255.
An optional list of category numbers may be used to restrict which lines are drawn (option ignored if a legend option is given).
More control can be had by creating a legend file. At the time of this writing, GRASS does not have any management functions for specifying how vectors should be drawn, so this file must be created by "hand". The easiest way to create such a file, is to copy the category file for the vector map, and edit it to contain color specifications. The format of the legend file is category red green blue, with one entry per line. If a category for a map is not included in this file, it will not be drawn unless there is a special "default" entry with a category of -1.
In the above, all labelled lines will be drawn in white (255, 255, 255) except those labelled as categories 1 or 5. If the "default" entry had been omitted, then only lines labelled 1 or 5 would have been drawn.
One may place comments on any line in the legend file by starting it with a non-numeric character ('#' is a good choice). Empty lines are ignored.
It is expected that the legend specification aspect of this module will change when an infrastructure for managing vector drawing styles is implemented.
Last changed: $Date$