this post was submitted on 23 Nov 2023
36 points (97.4% liked)

retrocomputing

4048 readers
5 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
[–] vrighter@discuss.tchncs.de 18 points 10 months ago (2 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.

[–] jaromil@fed.dyne.org 0 points 10 months 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...

[–] vrighter@discuss.tchncs.de 1 points 10 months ago

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