Improve GR/HGR colors

This commit is contained in:
Joshua Bell 2020-06-13 10:38:34 -07:00
parent 5329ae4ccc
commit 45aa654f0c
2 changed files with 29 additions and 38 deletions

View File

@ -28,22 +28,18 @@ function HiRes(element, width, height) {
pixels.length = width * height; pixels.length = width * height;
// Colors c/o USENET: // From: Apple ][ Colors at MROB
// Date: Wed, 05 Sep 2007 01:04:20 +0200 // https://mrob.com/pub/xapple2/colors.html
// From: Linards Ticmanis <ticmanis@gmx.de>
// Newsgroups: comp.sys.apple2
// Subject: Re: Double hires mode color artifacts
// Message-ID: <46dde477$0$4527$9b4e6d93@newsspool3.arcor-online.net>
COLORS = [ COLORS = [
'#000000', // Black 1 '#000000', // 0 = Black 1
'#2fbc1a', // Green '#14f53c', // 1 = Green
'#d043e5', // Violet '#ff44fd', // 2 = Purple
'#ffffff', // White 1 '#ffffff', // 3 = White 1
'#000000', // Black 2 '#000000', // 4 = Black 2
'#d06a1a', // Orange '#ff6a3c', // 5 = Orange
'#2f95e5', // Medium Blue '#14cffd', // 6 = Medium Blue
'#ffffff' // White 2 '#ffffff' // 7 = White 2
]; ];
this.clear = function(opt_color) { this.clear = function(opt_color) {

View File

@ -21,30 +21,27 @@ function LoRes(element, width, height) {
pixels = [], // color values pixels = [], // color values
color = 0; // current color color = 0; // current color
// Colors c/o USENET:
// Date: Wed, 05 Sep 2007 01:04:20 +0200 // From: Apple ][ Colors at MROB
// From: Linards Ticmanis <ticmanis@gmx.de> // https://mrob.com/pub/xapple2/colors.html
// Newsgroups: comp.sys.apple2
// Subject: Re: Double hires mode color artifacts
// Message-ID: <46dde477$0$4527$9b4e6d93@newsspool3.arcor-online.net>
COLORS = [ COLORS = [
'#000000', // Black '#000000', // 0 = Black
'#901740', // Deep Red '#e31e60', // 1 = Deep Red
'#402ca5', // Dark Blue '#604ebd', // 2 = Dark Blue
'#d043e5', // Purple '#ff44fd', // 3 = Purple
'#006940', // Dark Green '#00a360', // 4 = Dark Green
'#808080', // Gray 1 '#9c9c9c', // 5 = Gray 1
'#2f95e5', // Medium Blue '#14cffd', // 6 = Medium Blue
'#bfabff', // Light Blue '#d0c3ff', // 7 = Light Blue
'#402400', // Brown // WAS #405400, error pointed out by MJM '#607203', // 8 = Brown
'#d06a1a', // Orange '#ff6a3c', // 9 = Orange
'#808080', // Gray 2 '#9c9c9c', // 10 = Gray 2
'#ff96bf', // Pink '#ffa0d0', // 11 = Pink
'#2fbc1a', // Light Green '#14f53c', // 12 = Light Green
'#bfd35a', // Yellow '#d0dd8d', // 13 = Yellow
'#6fe8bf', // Aquamarine '#72ffd0', // 14 = Aquamarine
'#ffffff' // White '#ffffff' // 15 = White
]; ];
function init() { function init() {
@ -156,5 +153,3 @@ function LoRes(element, width, height) {
init(); init();
} }