ComfyUI Node
Dither 1-bit
1-bit dither: turns an image into two colours using stripes, Bayer dots, halftone or error diffusion. Also outputs the pattern as a MASK for compositing.
Dither 1-bit
- image
- image
- mask
◄patterndiagonal stripes►
◄pixel_size2►
◄pattern_size8►
◄smoothing0.30►
◄black_point0.15►
◄white_point0.90►
◄gamma1.00►
◄invertfalse►
◄fg_color#FFFFFF►
◄bg_color#000000►
CategoryX4Lch3mist/image
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| pattern | COMBO | diagonal stripes | 9 options: diagonal stripes, diagonal stripes (reverse), horizontal lines, vertical lines, crosshatch, bayer, +3 |
| pixel_size | INT | 21–32 | Size of one dither pixel in output pixels. Bigger = coarser, more retro. |
| pattern_size | INT | 82–64 | Period of the stripes / dots, measured in dither pixels. Ignored by floyd-steinberg and atkinson. |
| smoothing | FLOAT | 0.300–1 | Blends a little Bayer into stripes/dots. 0 = hard graphic lines, higher = finer tone steps. |
| black_point | FLOAT | 0.150–1 | Everything darker than this becomes solid background. Raise it if dark areas get striped. |
| white_point | FLOAT | 0.900–1 | Everything brighter than this becomes solid foreground. |
| gamma | FLOAT | 1.000.1–5 | >1 brightens midtones (more ink), <1 darkens them. |
| invert | BOOLEAN | false | — |
| fg_color | STRING | #FFFFFF | Colour of the 'on' pixels, hex. |
| bg_color | STRING | #000000 | Colour of the 'off' pixels, hex. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |