tfuxu / Halftone

Give your images that pixel art-like style
GNU General Public License v3.0
101 stars 16 forks source link

Implement halftoning #13

Open nclm opened 1 year ago

nclm commented 1 year ago

Great app!

With this name and this logo however, I would expect to be able to use it for doing actual halftones (the print kind), and not dithering (the screen kind). So I suggest that halftoning could be added, even maybe as a default algorithm?

There might already be open source code for it that could be integrated?

For a quick implementation, I suggest the “Color Amount” option could have two choices, either “1” (in which case it would be doing a monochrome halftoning of the grayscale image), or “4” (in which case it would do overlayed CMYK halftones).

I don’t have anything than Photoshop underhand right now, but for reference, here are the options for the default monochrome halftone it has:

half1

And for the CMYK halftone:

helf2

Ideally choosing angles, shape, colours and resolution would be amazing, but a simple implementation with default angles could work too at least for a start :)

tfuxu commented 1 year ago

Yeah, its pretty ironic 😄️ I'll work on implementing halftone effect in the near future, as I'm planning to implement more dither algorithms pretty soon.