Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/monke/src/dither/quick.ts>quick2

Color quantization and dithering in TypeScript.
Go to Latest
function quick2
import { quick2 } from "https://deno.land/x/monke@v1.0.1/src/dither/quick.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[]