diff --git a/src/routes/dither/+page.svelte b/src/routes/dither/+page.svelte index 6d4542b..471ad8d 100644 --- a/src/routes/dither/+page.svelte +++ b/src/routes/dither/+page.svelte @@ -4,10 +4,10 @@ import { onMount } from 'svelte'; const DITHERING_ALGORITHMS = { - atkinson: (imageData) => Dither.atkinson(imageData), - bayer: (imageData) => Dither.bayer(imageData, 170), - floydSteinberg: (imageData) => Dither.floydsteinberg(imageData), - threshold: (imageData) => Dither.threshold(imageData, 2), + atkinson: (imageData: ImageData) => Dither.atkinson(imageData), + bayer: (imageData: ImageData) => Dither.bayer(imageData, 170), + floydSteinberg: (imageData: ImageData) => Dither.floydsteinberg(imageData), + threshold: (imageData: ImageData) => Dither.threshold(imageData, 2), } let canvas: HTMLCanvasElement;