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

retrocomputing

176 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
[–] vrighter@discuss.tchncs.de 12 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.

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

[–] vrighter@discuss.tchncs.de 1 points 11 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...