Skip to content
← All work

Case 05 / Web app + backend

Mozzaic

Photos, video and webcam into pixel art, live in the browser.

Role
Design & engineering, solo
Platforms
Web
Built with
TypeScript · WebGL2 · React · Python · FastAPI · OpenCV
Mozzaic turning a photo into pixel art

Overview

Shrinking and posterising gives you mush, not pixel art. Mozzaic treats it as reconstruction: area-averaged downsampling, colour matching in the Oklab perceptual space, and eight dither modes, with an optional backend that keeps video colours from boiling between frames.

What it does

  1. 01Three-pass WebGL2 pipeline; Bayer and noise dithering on the GPU
  2. 02Floyd–Steinberg, Atkinson and Sierra error diffusion on the CPU
  3. 03Adaptive k-means palettes, or import your own .hex / .gpl
  4. 04PNG export at up to 16×, WebM recording of a full video loop

Under the hood

  • ✺Error diffusion in an Oklab-based space with palette-box clamping, kept identical on client and server
  • ✺Everything runs locally unless you choose a server render
A Game Boy palette look
Game Boy, PICO-8, Sweetie 16, Endesga 32 and more.
Zoomed in with the pixel grid on
Server-side video render with progress
Optical-flow stabilised video renders on the Python backend.
Next caseBooktures→Any book, turned into an illustrated visual novel