@thi.ng/pixel-dither
Version:
Extensible image dithering w/ various algorithm presets
13 lines • 550 B
TypeScript
import type { IntBuffer } from "@thi.ng/pixel";
import type { DitherKernel, DitherOpts } from "./api.js";
/**
* Generic kernel-based dithering. Takes a {@link DitherKernel} and integer
* pixel buffer (multiple channels supported). Applies dithering to all (or
* configured) channels using provided options. Returns modified pixel buffer.
*
* @param kernel -
* @param img -
* @param opts -
*/
export declare const ditherWith: (kernel: DitherKernel, img: IntBuffer, opts?: Partial<DitherOpts>) => IntBuffer;
//# sourceMappingURL=dither.d.ts.map