The latest ZXDB database update will be applied today at 1530 BST. The site goes down for around 30 minutes whilst this happens.

Resaturate jsspeccy3

Broken link? Feature request? Anything related to the Spectrum Computing website here.
Post Reply
User avatar
Stefan
Manic Miner
Posts: 820
Joined: Mon Nov 13, 2017 9:51 pm
Location: Belgium
Contact:

Resaturate jsspeccy3

Post by Stefan »

The jsspeccy3 colours as used to emulate games on this site look terribly washed out to me. Maybe it is the result of years of using emulators with a saturated palette, maybe not. Gasman does not want to change jsspeccy3's colours until he is approached with a scientific palette (see github issue 17).

Until this arrives, could the palette as used on this site be resaturated?

Adjust jsspeccy.js so that:

Code: Select all

this.palette = new Uint32Array(
                [255,
                540066047,
                3225424127,
                3225469183,
                1085280511,
                1354805503,
                3770683647,
                3233857791,
                255,
                809566207,
                4282396927,
                4285591807,
                1356861695,
                1356922879,
                4293415167,
                4294967295]
              ),
Is returned to what jsspeccy2 was using pre-desaturation:

Code: Select all

this.palette = new Uint32Array(
                [255,
                49407,
                3221225727,
                3221274879,
                12583167,
                12632319,
                3233808639,
                3233857791,
                255,
                65535,
                4278190335,
                4278255615,
                16711935,
                16777215,
                4294902015,
                4294967295]
              ),
Thanks!
Last edited by Stefan on Sun Jan 28, 2024 2:24 pm, edited 1 time in total.
User avatar
PeterJ
Site Admin
Posts: 6890
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Restaturate jsspeccy3

Post by PeterJ »

Hi @Stefan,

I will send you a PM this evening.

Peter
Post Reply