1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-10 14:29:30 +00:00

Update to use NTSC Corrected color values

This commit is contained in:
Peter Evans 2018-03-14 23:50:53 -05:00
parent bff83bc315
commit 2eccb288a4

View File

@ -19,26 +19,30 @@
/*
* These are the color codes for the lo-res colors that are available.
* Each pixel in lo-res indicates one color. These are colors I found
* somewhere online -- I'm not sure if they are exact matches, and are
* subject to change.
* Each byte in lo-res represents two visual cells, each 4 bytes high,
* which are indicated by considering the low and high 4 bits separately
* and matching them against the colors in the table below.
*
* These color values are the "NTSC Corrected" colors as defined in the
* Apple II Forever Anthology, v0.3, Hires reference (pulled from
* archive.org).
*/
static vm_color lores_colors[] = {
{ 0x00, 0x00, 0x00, 0x00 }, // black
{ 0xff, 0x28, 0x97, 0x00 }, // magenta
{ 0x60, 0x4d, 0xbc, 0x00 }, // dark blue
{ 0xff, 0x44, 0xfd, 0x00 }, // purple
{ 0x00, 0xa3, 0x60, 0x00 }, // dark green
{ 0x9c, 0x9c, 0x9c, 0x00 }, // gray
{ 0x14, 0xcf, 0xfd, 0x00 }, // medium blue
{ 0xd0, 0xc3, 0xff, 0x00 }, // light blue
{ 0x60, 0x72, 0x03, 0x00 }, // brown
{ 0xff, 0x6a, 0x3c, 0x00 }, // orange
{ 0x9c, 0x9c, 0x9c, 0x00 }, // gray
{ 0xff, 0xa0, 0xd0, 0x00 }, // pink
{ 0x14, 0xf5, 0x3c, 0x00 }, // light green
{ 0xd0, 0xdd, 0x81, 0x00 }, // yellow
{ 0x72, 0xff, 0xd0, 0x00 }, // aquamarine
{ 0x90, 0x17, 0x40, 0x00 }, // magenta
{ 0x40, 0x2c, 0xa5, 0x00 }, // dark blue
{ 0xd0, 0x43, 0xe5, 0x00 }, // purple
{ 0x00, 0x69, 0x40, 0x00 }, // dark green
{ 0x80, 0x80, 0x80, 0x00 }, // gray
{ 0x2f, 0x95, 0xe5, 0x00 }, // medium blue
{ 0xbf, 0xab, 0xff, 0x00 }, // light blue
{ 0x40, 0x54, 0x00, 0x00 }, // brown
{ 0xd0, 0x6a, 0x1a, 0x00 }, // orange
{ 0x80, 0x80, 0x80, 0x00 }, // gray
{ 0xff, 0x96, 0xbf, 0x00 }, // pink
{ 0x2f, 0xbc, 0x1a, 0x00 }, // light green
{ 0xbf, 0xd3, 0x5a, 0x00 }, // yellow
{ 0x6f, 0xe8, 0xbf, 0x00 }, // aquamarine
{ 0xff, 0xff, 0xff, 0x00 }, // white
};