https://wikiti.brandonw.net/index.php?title=84PCSE:RAM:A038&feed=atom&action=history84PCSE:RAM:A038 - Revision history2024-03-29T06:15:40ZRevision history for this page on the wikiMediaWiki 1.23.5https://wikiti.brandonw.net/index.php?title=84PCSE:RAM:A038&diff=10186&oldid=prevFloppusMaximus: penFGColor2013-10-20T04:06:47Z<p>penFGColor</p>
<p><b>New page</b></p><div>[[Category:84PCSE:RAM:By Address|A038 - penFGColor]] [[Category:84PCSE:RAM:By Name|penFGColor]]<br />
== Synopsis ==<br />
'''Unofficial Name:''' penFGColor<br />
<br />
'''Memory Address:''' A038h<br />
<br />
'''Length:''' 2 bytes<br />
<br />
Stores the current RGB foreground color, used for small-font text display and for some drawing routines.<br />
<br />
== Comments ==<br />
This is the "foreground" color used by small-font text routines (such as [[84PCSE:BCALLs:4555|VPutMap]] and [[84PCSE:BCALLs:4558|VPutS]]), as well as by most graphing/drawing routines (such as [[84PCSE:BCALLs:47CE|IPoint]], [[84PCSE:BCALLs:47CB|ILine]], and [[84PCSE:BCALLs:4D65|DrawRectBorder]].)<br />
<br />
Note that if you are drawing to the graph buffer, you will also need to set [[84PCSE:RAM:A03A|penFGColorIndex]].<br />
<br />
Colors are represented as a 5-6-5 value (5 bits of red, 6 bits of green, 5 bits of blue.) For example, <span style="color: #f00">00000</span><span style="color: #0c0">011111</span><span style="color: #00f">00000</span>b, or 03E0h, would be dark green. <span style="color: #f00">11111</span><span style="color: #0c0">000000</span><span style="color: #00f">11111</span>b, or 0F81Fh, would be bright magenta.<br />
<br />
== See also ==<br />
* [[84PCSE:RAM:A03A|penFGColorIndex]]<br />
* [[84PCSE:RAM:A036|penBGColor]]<br />
* [[84PCSE:RAM:A5F4|fillRectColor]]<br />
* [[84PCSE:RAM:A015|curFGColor]] and [[84PCSE:RAM:A017|curBGColor]]</div>FloppusMaximus