The Palette
Posted: Tue May 04, 2021 6:40 pm
I have updated the first post with a slightly improved version of the palette. Some of the gradients didn't translate well with simple rounded math, and bitshifting is even worse. So I've now improved the gradient colors by matching the closest perceived color by doing CIEDE2000 against the full 4096 color space. It is quite slow to do, but the result is a lot better ?
I've also continued work on my CodeSandbox project, the Indexed Palette Converter. I originally wrote it to convert between a couple of palette file formats to work with images between a couple of programs, but it has now extended a bit. During the past week I rewrote the UI to Preact + htm and added support for:
Displaying palette in multiple color depths
Saving palette in the displayed color depth
Read and write ACT palettes
Read and write GIMP palettes
Read and write VICE palettes
Read and write 16-bit palettes in both 512 and 768 byte raw binary files (although I haven't encountered these)
Read GIF global palette
I've also fixed things like bit terminology.
Next I'm planning to add some palette editing and generation capabilities. Also I probably should do some internal refactor as currently the palette values are manually stored in Windows RIFF compatible format all the time and I probably should just do some palette class to reduce code repetition ?
However this is pretty far off from Commander X16 so I guess I keep this as a one time update.