Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/monke/mod.ts>bidirectional

Color quantization and dithering in TypeScript.
Latest
function bidirectional
Re-export
import { bidirectional } from "https://deno.land/x/monke@v1.0.2/mod.ts";

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

Parameters

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