Skip to main content
Module

x/monke/mod.ts>quickTwoRowDither

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

Dither the image into a smaller palette Uses a quick, two-row dither Use twoRowSierraDither for more accuracy

Parameters

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