Skip to main content
Module

x/monke/mod.ts>sierraLite

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

Dither the image into a smaller palette Uses Sierra lite matrix Use twoRowSierraDither for more accuracy

Parameters

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