]> Shamusworld >> Repos - apple2/commitdiff
Added new palette from pic on the xapple2 color page.
authorShamus Hammons <jlhamm@acm.org>
Sat, 12 Sep 2020 00:30:22 +0000 (19:30 -0500)
committerShamus Hammons <jlhamm@acm.org>
Sat, 12 Sep 2020 00:30:22 +0000 (19:30 -0500)
It looks terrible, but put in as a point of comparison to the others, to
basically show just how awesome the ApplePC palette actually is.  :-)

src/video.cpp

index cc5805cc4ad0579850c50fe567f5701b79ef3536..1245308c940b02fa0dab4ef6a52fe16c326cd5c3 100644 (file)
@@ -189,6 +189,28 @@ static uint8_t robColors[16 * 4] = {
        0xFF, 0xFF, 0xFF, 0xFF  // White
 };
 
+// This palette comes from the picture posted on website from robColors. It
+// also looks worse than all the others.  :-P
+
+static uint8_t picColors[16 * 4] = {
+       0x00, 0x00, 0x00, 0xFF,
+       0xB0, 0x01, 0x68, 0xFF,
+       0x01, 0x19, 0xEB, 0xFF,
+       0xC9, 0x00, 0xEF, 0xFF,
+       0x25, 0x99, 0x00, 0xFF,
+       0x71, 0x70, 0x6E, 0xFF,
+       0x18, 0xB3, 0xE9, 0xFF,
+       0x8A, 0x88, 0xEB, 0xFF,
+       0x54, 0x5A, 0x02, 0xFF,
+       0xDF, 0x34, 0x00, 0xFF,
+       0x70, 0x6E, 0x6F, 0xFF,
+       0xE1, 0x49, 0xE9, 0xFF,
+       0x38, 0xFF, 0x00, 0xFF,
+       0xD5, 0xD8, 0x01, 0xFF,
+       0x45, 0xFF, 0x75, 0xFF,
+       0xED, 0xEB, 0xEE, 0xFF
+};
+
 // Lo-res starting line addresses
 
 static uint16_t lineAddrLoRes[24] = {
@@ -366,6 +388,11 @@ void TogglePalette(void)
                SpawnMessage("ApplePC Color TV palette");
        }
        else if (palette == (uint32_t *)altColors)
+       {
+               palette = (uint32_t *)picColors;
+               SpawnMessage("Picture Color TV palette");
+       }
+       else if (palette == (uint32_t *)picColors)
        {
                palette = (uint32_t *)robColors;
                SpawnMessage("Rob's Color TV palette");