- Joined
- Dec 13, 2022
I ended up stealing the algo from https://pepoafonso.github.io/color_converter_wplace/index.html where the source code pointed me towards https://www.compuphase.com/cmetric.htmyeah it doesn't really make sense which means you should probably switch to an additive color space so you can add and subtract colors
yeah that sounds about right, considering the last thing i quoted
also remember that many things involving color are a "does it look right?" kind of thing. your fancy german oklab color space is just a heavily optimized transformation into a coordinate space that is optimized to look right
just undo the srgb response curve to get a linear form of srgb and then propagate errors through that
if you don't undo the response curve it will make the image slightly darker or something, which is not very ideal
of course you might like the look of a floyd steinberg performed on gamma corrected srgb better than you like it on regular srgb! and if it looks better it's not very important how "correct" it is because this is a shitty pixelart converter and it's just supposed to look good
And I am getting the same result as there now. Which I am happy with, for now. Now onto actually implementing the dithering. Which shouldn't be too hard, tbh