Build a browser editor that turns images and video into dithered pixel art

A Redditor asked Claude Code for a small dither tool and, in one long session, got a plain-JS editor with 18 dither patterns, 24 palettes and exports to PNG, GIF, MP4 and SVG.

Done withClaude Code· Nov 13, 2026

What they did

The poster wanted a quick way to give pictures a glowing, dithered pixel look. They asked Claude Code, running the Fable 5.2 model, for a small dither art editor and kept adding to it over one long session. The result, nightgrain, is plain JavaScript with no build step and no backend, so it runs as a static page on GitHub Pages. It takes an image, GIF or video and turns it into pixel art, can draw pixels as letters, braille or ASCII, and adds mouse effects such as glow and water ripples.

How it went

The finished editor has 18 dither patterns, 24 palettes and 29 preset looks, and exports PNG, GIF, MP4, SVG and plain text. It is live and the code is public on GitHub. The poster gives no time or cost figures beyond calling it one long session.

Worth knowing

The tool styles existing pictures; it does not make art from nothing, which one commenter said they had hoped for. The poster's own tip is to generate the source image elsewhere first, such as in Midjourney, and then run it through the editor.

Try it

With Claude Code· 5 parts to fill in

Build me a single-page browser tool in plain JavaScript, with no build step and no backend, that turns [images, GIFs or video] into dithered pixel art. Start with [number] dither patterns and [palette list], a live preview and PNG export. Once that works, add [extra features, for example ASCII output or GIF export] one at a time, checking each in the browser before moving on. Keep everything in files that can be hosted on [static host]. Stop after each feature and show me how to try it.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related