Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

SVG Paint Stages

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

範例 · 2

線上執行

免費

在 SandBase sandbox 中執行 SVG Paint Stages 的範例,並在此立即查看結果。

您可獲得什麼

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.

運作方式

  1. 01

    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. 02

    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. 03

    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.

常見問題

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.