Skip to main content
Module

x/monke/mod.ts>dither

Get colors from image
Go to Latest
function dither
import { dither } from "https://deno.land/x/monke@v0.0.1/mod.ts";

Dither the image into a smaller palette

Parameters

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