Skip to main content
Module

x/monke/mod.ts>quick2

Color quantization and dithering in TypeScript.
Latest
function quick2
Re-export
import { quick2 } from "https://deno.land/x/monke@v1.0.2/mod.ts";

Dither the image into a smaller palette Uses a quick, two-row dither. Creates a column pattern. Use Floyd-Steinberg or Sierra to avoid patterns.

Parameters

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