class Image
implements ImageData
Re-export
import { Image } from "https://deno.land/x/monke@v1.0.2/mod.ts";
Image with width, height, and pixel data All methods mutate the image itself
Properties
pixels: Color[]
Methods
dither(palette: Color[], options?: DitherOptions)
Recolor the image with dithering
grayscale(): void
Make the image grayscale
invert(): void
Invert colors in the image
monochrome(dither?, ditherMode?: "floyd_steinberg" | "quick"): void
Recolor the image using just black and white
Convert to an ImageData object