How do I specify colours in tkeden?
Colour values can specified to Tk (and hence, tkeden) in two ways. (The following is taken from “Practical Programming in Tcl and Tk”, Welch). Colour values are specified in two ways: symbolically (eg red) or by hexadecimal numbers (eg #ff0000). The leading # distinguishes the hexadecimal representation from the symbolic one… There is a large collection of symbolic colour names like “red”, “blue”, “green”, “thistle”, “medium sea green”, “yellow4”. These names originate from X… run the xcolors program that comes with the standard X distribution. We’d recommend that you use hexadecimal colour values if you are not using one of the trivial colour names (for portability). A function to convert integer red, green, blue values (eg 1, 30, 255) into a hexadecimal colour reference which can be used throughout tkeden (the corresponding result being #011eff) is given below. %eden func colourref { para r, g, b; s = substr(“”, 1, 8); /* must initialise to appropriate length first */ sprintf(s,