@@ -8,7 +8,7 @@ suite "Error diffusion dithering":
88 test " Can perform Floyd Steinberg dithering" :
99 var output = newOutput [20 , int ]()
1010
11- errorDiffusionDither (img, output, BlackAndWhite () , IntQuantizer () , FloydSteinberg )
11+ errorDiffusionDither (img, output, BlackAndWhiteIntPalette , IntQuantizer , FloydSteinberg )
1212
1313 check (output == [
1414 [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 0 , 0 , 255 , 0 , 255 , 0 , 255 ],
@@ -26,7 +26,7 @@ suite "Error diffusion dithering":
2626 test " Can perform Jarvis, Judice, and Ninke dithering" :
2727 var output = newOutput [20 , int ]()
2828
29- errorDiffusionDither (img, output, BlackAndWhite () , IntQuantizer () , JarvisJudiceNinke )
29+ errorDiffusionDither (img, output, BlackAndWhiteIntPalette , IntQuantizer , JarvisJudiceNinke )
3030
3131 check (output == [
3232 [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 0 , 0 , 255 , 0 ],
@@ -44,7 +44,7 @@ suite "Error diffusion dithering":
4444 test " Can perform Stucki dithering" :
4545 var output = newOutput [20 , int ]()
4646
47- errorDiffusionDither (img, output, BlackAndWhite () , IntQuantizer () , Stucki )
47+ errorDiffusionDither (img, output, BlackAndWhiteIntPalette , IntQuantizer , Stucki )
4848
4949 check (output == [
5050 [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 0 , 0 , 255 , 0 ],
@@ -62,7 +62,7 @@ suite "Error diffusion dithering":
6262 test " Can perform Atkinson dithering" :
6363 var output = newOutput [20 , int ]()
6464
65- errorDiffusionDither (img, output, BlackAndWhite () , IntQuantizer () , Atkinson )
65+ errorDiffusionDither (img, output, BlackAndWhiteIntPalette , IntQuantizer , Atkinson )
6666
6767 check (output == [
6868 [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 0 , 0 , 255 ],
@@ -80,7 +80,7 @@ suite "Error diffusion dithering":
8080 test " Can perform Burkes dithering" :
8181 var output = newOutput [20 , int ]()
8282
83- errorDiffusionDither (img, output, BlackAndWhite () , IntQuantizer () , Burkes )
83+ errorDiffusionDither (img, output, BlackAndWhiteIntPalette , IntQuantizer , Burkes )
8484
8585 check (output == [
8686 [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 0 , 0 , 255 , 0 , 255 , 0 ],
0 commit comments