Skip to main content
Module

x/monke/mod.ts

Get colors from image
Go to Latest
import * as monke from "https://deno.land/x/monke@v0.0.3/mod.ts";

Classes

General class for RGBA colors

Histogram of colors with reduced space Effectively quantizes the image into 32768 colors

Functions

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

Get a histogram of frequency of colors.

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 a quick, two-row dither Use twoRowSierraDither for more accuracy

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