Top Up Prev Next Bottom Contents Index Search

5.5 Selecting colors

Since X window installations do not necessarily use consistent color names, a particular color database has been installed in Ptolemy. The available colors can be found in the file $PTOLEMY/lib/tcl/ptkColor.tcl. To access this color database, use the Tcl function

ptkColor name which returns a color defined in terms of RGB components. This color can be used anyplace that Tk expects a color. If the given name is not in the color database, the color returned is black.



Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.