Color by Number
An offline friendly coloring app that turns any image into an interactive pixel art puzzle.

Overview
Color by Number is a browser-based coloring app I built for my daughter.
She used to love playing a similar game, but it was full of advertisements and had a built-in social platform where users could share pictures and leave comments. We weren’t comfortable with those features in an app she was using, so we stopped letting her play it.
The coloring itself wasn’t the problem. She loved that part.
So I decided to build her a version without the things we didn’t want. No ads, no social features, no accounts, and no tracking. Just a simple coloring app where she could turn any picture she liked into a color-by-number puzzle.
Rather than providing a fixed collection of coloring pages, the app generates puzzles from images uploaded by the user. Everything is processed locally in the browser, so images are never sent to a server.
How It Works
The user uploads an image and chooses a difficulty level. The app then processes the image, reduces it to a grid of pixels and generates a numbered color palette.
Each grid cell is assigned a number corresponding to one of the colors. Selecting a color highlights its matching cells, which can then be filled by tapping or dragging.
There are several difficulty levels, from simple puzzles with larger cells and fewer colors to more detailed grids with smaller cells and larger palettes.
The coloring interface also supports zooming, panning, undo and redo, and a preview of the original image.

Image Processing
The main technical challenge was converting arbitrary images into puzzles that are still recognisable and enjoyable to color.
The app uses client side image processing to resize images, reduce their color palettes and map the resulting colors to numbered grid cells.
This works with everything from simple illustrations to photographs, although more complex images generally benefit from larger grids and additional colors.
The processing pipeline runs entirely in JavaScript, using Canvas and color quantisation. There is no need to send the original image to a server.
Built for Tablets and Offline Use
Because the app was primarily intended for my daughter, touchscreen usability was an important part of the design.
The interface supports tapping and dragging to color, along with pinch to zoom and panning for navigating larger puzzles.
Puzzles and coloring progress are stored locally in the browser, allowing users to leave and return later without losing their work.
The app also supports offline use, with the application cached in the browser so previously loaded resources remain available without an internet connection.
There are no accounts, analytics, advertisements or external services involved in coloring.

Technology
- JavaScript and Vite for the application
- Canvas 2D for puzzle rendering and image processing
- Color quantisation for palette generation
- IndexedDB for local puzzle storage and progress
- Browser caching for offline functionality
- Cloudflare for static hosting
The Result
What started as a small project for my daughter became a complete little application, combining image processing, interactive graphics, touch controls and offline storage.
It’s a good example of how much functionality can be delivered directly in the browser without a complicated backend.
And, more importantly, she can turn almost any picture she likes into something she can color herself.
Project Details
- Role
- Sole developer
- Project type
- Browser coloring application
- Development
- Designed and built independently
- Status
- Live
- Website
- color.hyduken.com