1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-07 01:29:30 +00:00

Merge pull request #40 from cybernesto/master

Fixed Apple II colors
This commit is contained in:
Steven Hugg 2020-06-03 18:37:47 -05:00 committed by GitHub
commit c3b2c60d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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