From 3207f17a7454ca08be15a7d9c2d43bb4efc31797 Mon Sep 17 00:00:00 2001 From: cybernesto Date: Wed, 3 Jun 2020 19:02:38 +0200 Subject: [PATCH] Fixed Apple II colors The color palette in Hi-Res is Purple / Green and Med Blue / Orange. Corrected RGB value of Light Blue (color 7) as it did not match the one in https://mrob.com/pub/xapple2/colors.html --- src/machine/apple2.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/machine/apple2.ts b/src/machine/apple2.ts index a9d967e5..0403cdba 100644 --- a/src/machine/apple2.ts +++ b/src/machine/apple2.ts @@ -402,7 +402,7 @@ var Apple2Display = function(pixels : Uint32Array, apple : AppleGRParams) { RGBA(0, 163, 96), RGBA(156, 156, 156), RGBA(20, 207, 253), - RGBA(128, 128, 255), + RGBA(208, 195, 255), RGBA(96, 114, 3), RGBA(255, 106, 60), RGBA(156, 156, 156), @@ -470,10 +470,10 @@ var Apple2Display = function(pixels : Uint32Array, apple : AppleGRParams) { // see if the hi bit is set if ((b1 & 0x80) == 0) { - c1 = 1; c2 = 12; // red & green + c1 = 3; c2 = 12; // purple & green } else { - c1 = 7; c2 = 9; // blue & orange + c1 = 6; c2 = 9; // blue & orange } // make a value consisting of: // the 8th bit, then bits 0-7, then the 9th bit