84PCSE:RAM:A038
From WikiTI
Synopsis
Unofficial Name: penFGColor
Memory Address: A038h
Length: 2 bytes
Stores the current RGB foreground color, used for small-font text display and for some drawing routines.
Comments
This is the "foreground" color used by small-font text routines (such as VPutMap and VPutS), as well as by most graphing/drawing routines (such as IPoint, ILine, and DrawRectBorder.)
Note that if you are drawing to the graph buffer, you will also need to set penFGColorIndex.
Colors are represented as a 5-6-5 value (5 bits of red, 6 bits of green, 5 bits of blue.) For example, 0000001111100000b, or 03E0h, would be dark green. 1111100000011111b, or 0F81Fh, would be bright magenta.