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

x/monke/src/dither/sierra.ts>sierraLite

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

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

Parameters

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