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

x/monke/src/mod.ts>sierraLite

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