Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I specify colours in tkeden?

Colours specify tkeden
0
Posted

How do I specify colours in tkeden?

0

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,

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123