Examples
Each one is a single HTML page using the library from lib/. Thumbnails are rendered live with the engine.
Load, dither, downloadOpen an image, pick a palette and a dither method, save a PNG. The smallest useful program.
Script tag, classic callNo bundler: one <script> tag and the v2-style pixelate({ image, width, dither, palette }) call, which still works.
Every dither methodOne image, one palette, each method side by side. Useful for choosing a look.
Batch to ZIPProcess several images with one settings object and download them as a single ZIP.
Live canvasPixelate an animated 2D canvas every frame, the way you would a game or a generative sketch.
Palette from a filePaste a GIMP .gpl, a Lospec .hex list or any text with hex colours, and apply it.
Embed the editorMount the full editor inside your own page with mountEditor() and one stylesheet.