Didn't hear from you right away so I implemented dithering as well, however through a new PixelArtAddDitherPattern node:
The node adds dither pattern to the image RGB values, so any color quantizer after the node achieves a dither look. It's modular and flexible, for example one could use the built-in Quantize node for dithering. The node also adds support for custom dither patterns (via input mask), and the classic 45-degree halftone pattern.
Here's manga'esque halftoning look using built-in Quantize node:
The amount option is a multiplier for the effect. Generally amount = 1 / num_colors is a good starting point.
Didn't hear from you right away so I implemented dithering as well, however through a new
PixelArtAddDitherPattern
node:The node adds dither pattern to the image RGB values, so any color quantizer after the node achieves a dither look. It's modular and flexible, for example one could use the built-in
Quantize
node for dithering. The node also adds support for custom dither patterns (via input mask), and the classic 45-degree halftone pattern.Here's manga'esque halftoning look using built-in![Elf_00039_](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector/assets/5467191/21016912-f5cc-47c2-aab5-cf4b7ea4461b)
Quantize
node:The
amount
option is a multiplier for the effect. Generallyamount = 1 / num_colors
is a good starting point.Bayer pattern example:![ComfyUI_00001_](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector/assets/5467191/6132147a-b459-4756-986e-9ed088e12c92)
Blue noise (custom pattern):![ComfyUI_00002_](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector/assets/5467191/d41967cf-96c1-41ed-91d5-79c30183b788)
Game Boy Camera'esque look:![ComfyUI_00003_](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector/assets/5467191/c3d21f45-73c3-4a67-b69b-551d87c9966b)
(Blue noise mask image:)![blue-noise-16x16](https://github.com/dimtoneff/ComfyUI-PixelArt-Detector/assets/5467191/dad06a48-abd4-4b4a-b817-ebeb8b2d93b8)
(Workflows included in the images.)