Skip to main content
Module

x/monke/mod.ts>Image#monochrome

Color quantization and dithering in TypeScript.
Go to Latest
method Image.prototype.monochrome
Re-export
import { Image } from "https://deno.land/x/monke@v1.0.0/mod.ts";

Recolor the image using just black and white

Parameters

optional
dither = [UNSUPPORTED]
optional
ditherMode: "floyd_steinberg" | "quick" = [UNSUPPORTED]