I'm on a bit of a retro kick at the moment ( I'm probably going senile ) and wanted to feel the warmth that for some reason i associate with early PC graphics adaptors.
so - I made a thing that palletises (and almost correctly) sets resolution on images as per the venerable CGA display adaptor from a long time ago
For those of you born this century that means that in most modes you have a choice of five predetermined 4 color palettes from a total palette of 16 colors at 320*200 pixel resolution.
there are high intensity versions of the pictured palettes and a couple of other modes (160*100 16 color) (640*200 2 color) that I've implemented but I'm not 100% sure I've got them right and as such they're not included.
The fun part of this was palletising the input image. Nothing supplied with designer comes anywhere close to doing a good job of picking colours so I rolled my own oklab space conversion which (I'm told) is perceptually "correct" and it seems to be working really nicely.
It's not a cheap pile of maths (3-4 ms at 2048*2048 on my 3080) but it's in Designer so who cares really?
It should be relatively trivial to extend this to support wider fixed palettes such as those found in EGA, VGA etc as well as other computers such as the C64, Atari ST and Amiga
