image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
49 lines • 1.21 kB
JavaScript
export var DitherKernel;
(function (DitherKernel) {
DitherKernel[DitherKernel["none"] = 0] = "none";
DitherKernel[DitherKernel["falseFloydSteinberg"] = 1] = "falseFloydSteinberg";
DitherKernel[DitherKernel["floydSteinberg"] = 2] = "floydSteinberg";
DitherKernel[DitherKernel["stucki"] = 3] = "stucki";
DitherKernel[DitherKernel["atkinson"] = 4] = "atkinson";
})(DitherKernel || (DitherKernel = {}));
export const DitherKernels = [
[
[ ],
[ ],
[ ],
],
[
[ ],
[ ],
[ ],
],
[
[ ],
[ ],
[ ],
[ ],
],
[
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
],
[
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
],
];
//# sourceMappingURL=dither-kernel.js.map