this post was submitted on 23 Nov 2023
37 points (100.0% liked)

retrocomputing

4650 readers
62 users here now

Discussions on vintage and retrocomputing

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 1 year ago (1 children)

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...

[–] [email protected] 1 points 1 year ago

I told you what to look for. It's a simple algorithm. Maybe try looking at the "implementation" section on the wikipedia page...