Skip to main content
Module

x/monke/src/dither/fs.ts>floydSteinberg

Color quantization and dithering in TypeScript.
Latest
function floydSteinberg
import { floydSteinberg } from "https://deno.land/x/monke@v1.0.2/src/dither/fs.ts";

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

Parameters

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