Skip to main content
Module

x/monke/mod.ts>floydSteinbergDither

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

Dither the image into a smaller palette Very fast dithering Use twoRowSierra for more accuracy Use monochromeDither for monochrome dithering

Parameters

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