Kids colouring
Upload your own line art or photo and click a closed region to flood fill it: the colour, fill tolerance and line-art luminance threshold are all adjustable, dark strokes are protected by default, and the PNG export keeps the original size — decoding, filling and exporting all happen locally in your browser.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
The image is decoded and filled locally in your browser; nothing is uploaded.
Pick a line art first (PNG / JPEG / WebP / GIF all work), then click a closed region in the result.
The canvas shows up once you pick a line art
Click a closed region in the result image to fill it: No point picked yet
Real numbers from this fill
These are the real numbers from this run — copy them straight out.
Pick a line art and click a closed region — the filled pixel count and bounding box show up here.
What this tool does
- Upload a line art (your own drawing, one you downloaded, or a scan) and click a closed region to fill it with the current colour — handy for colouring with kids.
- Recolour a photo region by region: click the sky to make it blue, click a shirt to make it red, at whatever tolerance works.
- Get a feel for flood-fill tolerance: 0 only fills an exactly matching colour, a larger value also swallows anti-aliased edges and similar shading.
- Export the result as a PNG at the original size, with the white background and dark line art intact, ready to print.
Example
Input
Upload a 64 × 64 line art (white with a 3px dark square whose interior is 34 × 34 white), click inside the square, colour #EF4444, tolerance 32, protect line art on, threshold 140
Output
Pixels filled: 1156 Pixels changed: 1156 Line pixels kept: 0 Filled share: 28.22 % Region bounds: 15,15 → 48,48 Export file name: lineart-colored.png
The interior is 34 × 34 = 1156 connected white pixels. The dark line (#1F2937 ≈ luma 41) is below the threshold of 140, so the fill never crosses the border and never repaints the line.
Frequently asked questions
Is my image uploaded to a server?
No. Decoding, the flood fill and the export all run in your browser on a Canvas. The page sends no requests and the image never leaves your device.
Why did one click fill only a small area — or almost the whole picture?
Filling uses a 4-connected flood fill: starting from the colour under the click, neighbouring pixels whose per-channel difference is within the fill tolerance join the same region. Line art is usually anti-aliased (a few light-grey layers around each stroke), so a small tolerance leaves a grey fringe while a large one can leak across thin lines. Start at the default 32 and adjust.
What happens if I click exactly on a line?
You get the message “that point is on a line” and nothing changes. The test is luminance: anything darker than the line-art luminance threshold (140 by default) counts as a line. Likewise, with “protect the line art” on, any dark anti-aliased pixel the fill reached is restored to its original colour, so the outline stays crisp.
Can I colour several regions at once?
Each click fills again from the original image, so the result keeps only the most recent region. To colour several regions, fill one, export the PNG and upload that PNG as the new line art — that way nothing is blended semi-transparently by accident.
How large is the exported PNG?
Exactly the size of the uploaded image (no scaling). The file is named “<stem>-colored.png”, so lineart.png becomes lineart-colored.png and stays easy to tell apart from the original.
Keywords:flood fillcoloring pagekids colouringcoloring