Skip to main content
Module

x/monke/mod.ts>quickDither

Color quantization and dithering in TypeScript.
Go to Latest
function quickDither
import { quickDither } from "https://deno.land/x/monke@v0.0.4/mod.ts";

Dither the image into a smaller palette Uses Sierra lite matrix Use twoRowSierraDither for more accuracy

Parameters

pixels: Color[]
width: number
palette: Color[]