# SVG Paint Stages

> Show a picture being painted: construction marks, contours, flat colour and finer patches, as a layered SVG and a short film.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Motion](https://www.sandbase.ai/skills/motion)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/motion/svg-paint-stages

## What you get

Turn one picture into a layered SVG painted in ten batches, and a silent film of it being drawn: construction marks, contours, flat colour, then finer patches.

## Install

Download the Skill package from https://www.sandbase.ai/skills/motion/svg-paint-stages (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/svg-paint-stages turn my illustration into a layered SVG and a 12-second film of it being painted. Write guides.json with the construction marks first, then create, render and check
```

## How it works

1. **Supply the picture** SVG Paint Stages takes one PNG, JPEG, WebP or SVG picture. An optional guides.json, written by the Agent, holds up to 200 construction marks a painter would block in first, such as a head circle, an action line, joint circles, perspective boxes and a horizon; without it, generic marks come from the subject's outline. Set duration, detail level and seed.
2. **Paint in ten batches** create.mjs estimates the paper colour, masks the subject and builds a layered SVG in ten batches: blue construction marks, grey rough contours traced from edge chains, a single-colour silhouette, large flat patches from top to bottom while the lines fade, then error-gated passes of smaller patches for light, shadow and detail. Each batch is saved as a snapshot.
3. **Render and check** render.mjs writes a silent 30 fps MP4 at the input's aspect, fitted to a 1920-pixel long edge, plus a poster frame. Every stage scales with a duration of 8 to 30 seconds. check.mjs verifies the SVG rules, the timeline contract and per-batch error metrics, then probes and fully decodes the film, exiting with an error on any failure.

## FAQ

### What does SVG Paint Stages make?

SVG Paint Stages turns one picture into a layered SVG painted in ten batches and a silent film of it being drawn, from construction marks to fine patches. The demos paint a courier fox on warm paper and a tabletop still life at dusk, both illustrations drawn for the Skill. It suits speed-paint clips and process reveals.

### Does SVG Paint Stages generate images?

No. SVG Paint Stages paints the picture you supply and never generates images or calls a model. Its only authoring step is the optional construction guide file. That keeps the film faithful to your own illustration, with the final batch matching the picture closely.

### What does the SVG Paint Stages guide file do?

The SVG Paint Stages guide file tells batch one what to draw: the shapes a painter would block in, such as circles, centre lines, joints and perspective boxes, in coordinates from 0 to 1. Accent marks can be listed for emphasis. Without the file the Skill derives generic marks from the outline.

### Can SVG Paint Stages handle a full scene?

Yes. SVG Paint Stages detects when more than 60 percent of the frame differs from the border and treats the picture as a full scene, painting it from a blank sheet over a toned ground. Isolated subjects instead keep the estimated paper colour as background.

### Does SVG Paint Stages need an API key?

SVG Paint Stages needs no API key and makes no model call, so a run is not billed. It requires Node.js 22, FFmpeg, a supported Chrome and pinned HyperFrames 0.8.30, and the first run may fetch packages. Reports are written in English and Chinese.

## Examples

- Parcel Fox (video)
- Window Still Life (video)
