Difference between revisions of "84PCSE:RAM:A03A"
Revision as of 20:42, 19 October 2013
Unofficial Name: penFGColorIndex
Memory Address: A03Ah
Length: 1 byte
Stores the current color index, used for small-font text display and for some drawing routines, when drawing on the graph.
This is the current color index (a number between 1 and 15, which identifies one of the 15 predefined colors.) It is used as a "foreground" color when drawing text, points, or lines on the graph.
Note, however, that this only determines what value is stored in the graph buffer; the actual color drawn to the LCD is determined by (penFGColor). (In other words, penFGColor determines what color is used at the time you call VPutMap or IPoint; penFGColorIndex determines what color will be used if the graph is later redisplayed or stored in a Pic variable.)
You may find it convenient to use SetPenFGIndex to set both penFGColor and penFGColorIndex at the same time.
The 15 predefined colors are as follows:
Using a value of 0, or greater than 15, may have strange effects.
Note also that there is no corresponding "penBGColorIndex". When drawing text on the graph, the background color index is always 11 (white) or 13 (medium gray), depending on the value of (penBGColor).