https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:5626&feed=atom&action=history
84PCSE:BCALLs:5626 - Revision history
2024-03-28T14:12:11Z
Revision history for this page on the wiki
MediaWiki 1.23.5
https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:5626&diff=10176&oldid=prev
FloppusMaximus: GetColorValue
2013-10-20T02:06:56Z
<p>GetColorValue</p>
<p><b>New page</b></p><div>[[Category:84PCSE:BCALLs:By Name|GetColorValue]] [[Category:84PCSE:BCALLs:By Name:Drawing|GetColorValue]] [[Category:84PCSE:BCALLs:By Address|5626 - GetColorValue]]<br />
== Synopsis ==<br />
'''Unofficial Name:''' GetColorValue<br />
<br />
'''BCALL Address:''' 5626h<br />
<br />
Look up the RGB value for one of the 15 standard colors in the graphing color palette.<br />
<br />
=== Inputs ===<br />
* A = color index (1 to 15)<br />
<br />
=== Outputs ===<br />
* DE = color value (RGB-565)<br />
<br />
=== Destroys ===<br />
* F<br />
<br />
== Comments ==<br />
The palette used by this routine is as follows:<br />
{| style="border-spacing: 0.5em 0.25em"<br />
! Index !! Value !! R !! G !! B !! Name<br />
|-<br />
| 1 || 001F || 0 || 0 || 31 || Blue<br />
|-<br />
| 2 || F800 || 31 || 0 || 0 || Red<br />
|-<br />
| 3 || 0000 || 0 || 0 || 0 || Black<br />
|-<br />
| 4 || F81F || 31 || 0 || 31 || Magenta<br />
|-<br />
| 5 || 04E0 || 0 || 39 || 0 || Green<br />
|-<br />
| 6 || FC64 || 31 || 35 || 4 || Orange<br />
|-<br />
| 7 || B100 || 22 || 8 || 0 || Brown<br />
|-<br />
| 8 || 0010 || 0 || 0 || 16 || Navy<br />
|-<br />
| 9 || 049F || 0 || 36 || 31 || Light Blue<br />
|-<br />
| 10 || FFE0 || 31 || 63 || 0 || Yellow<br />
|-<br />
| 11 || FFFF || 31 || 63 || 31 || White<br />
|-<br />
| 12 || E71C || 28 || 56 || 28 || Light Gray<br />
|-<br />
| 13 || C618 || 24 || 48 || 24 || Medium Gray<br />
|-<br />
| 14 || 8C51 || 17 || 34 || 17 || Gray<br />
|-<br />
| 15 || 52AA || 10 || 21 || 10 || Dark Gray<br />
|}<br />
<br />
A = 0 (which, in the graph buffer, represents a "transparent" pixel) also returns white. Values of A greater than 15 will return garbage.</div>
FloppusMaximus