this post was submitted on 23 Nov 2023
36 points (97.4% liked)
retrocomputing
4124 readers
1 users here now
Discussions on vintage and retrocomputing
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
you want to convert the image to grayscale properly (using luminance, not the mean of the rgb colors), then you can palettize it using a dithering algorithm like floyd-steinberg, with a palette containing only the colors black and white.
I'm looking for a source code in C that does that, to include it in frei0r, before I have to go and write it myself...
I told you what to look for. It's a simple algorithm. Maybe try looking at the "implementation" section on the wikipedia page...