maxWidthHeight:
:
scale:
:
threshold:
Threshold 1x1 (non-dither)
Checkboard 2x1 (dither)
Ordered 2x2 (dispersed)
Ordered 3x3 (dispersed)
Ordered 4x4 (dispersed)
Ordered 8x8 (dispersed)
Halftone 4x4 (angled)
Halftone 6x6 (angled)
Halftone 8x8 (angled)
Halftone 4x4 (orthogonal)
Halftone 6x6 (orthogonal)
Halftone 8x8 (orthogonal)
Halftone 16x16 (orthogonal)
Circles 5x5 (black)
Circles 5x5 (white)
Circles 6x6 (black)
Circles 6x6 (white)
Circles 7x7 (black)
Circles 7x7 (white)
Red
1
2
4
8
16
Green
1
2
4
8
16
Blue
1
2
4
8
16
srcCanvas
srcCanvas
halftoneCanvas
dstCanvas