Skip to main content
Module

x/monke/src/dither.ts

Color quantization and dithering in TypeScript.
Go to Latest
import * as monke from "https://deno.land/x/monke@v0.0.4/src/dither.ts";

Functions

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

Dither the image into a smaller palette Starts from the mid point of the image I have no idea why I did this

Dither the image into monochrome Uses Floyd-Steinberg matrix

Recolor the image without dithering

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

Dither the image into a smaller palette Uses a quick, two-row dither Use twoRowSierraDither for more accuracy

Dither the image into a smaller palette Uses two-row Sierra matrix