Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Epicycle Studio: Ink Portrait

Turn rotating circles into luminous drawings with a real Fourier transform and an interactive reveal.

示例

Epicycle Studio interactive drawing
在新标签页中打开

Epicycle Studio interactive drawing

该示例在沙盒化的框架中运行,无法访问此页面。

在线运行

在 SandBase sandbox 中运行,并在 Lab 中查看结果。

在 Lab 中打开 ↗

你将获得什么

Bring a subject, editable vector drawings and an optional palette. The Skill returns a downloadable Skill, interactive demos and example videos.

工作原理

  1. 01

    Fill the drawing prompt

    Epicycle Studio fills its prompt from a slots file: node scripts/fill-prompt.mjs --slots assets/prompts/examples/ink-portrait.json --out prompt.md. Then node scripts/new-project.mjs --out my-epicycles and npm ci set up the project. The agent edits src/drawings.ts, where each subject is a closed, normalized vector path. The Ink Portrait example ships a portrait, a butterfly and a spiral shell.

  2. 02

    Compute the rotating circles

    A real discrete Fourier transform turns each path into rotating vectors, and the trail and the numerical error derive from those coefficients. The verified build samples 1024 points per drawing and reports a full reconstruction error near 1.7e-11. In the page you choose a drawing, pick one of five harmonic detail levels, scrub the reveal, pause, restart, hide the circles and zoom.

  3. 03

    Build and check offline

    npm run build:single writes one offline HTML file with English and Simplified Chinese, and npm run shoot -- --file dist-single/index.html runs the screenshot and state checks in references/verification.md. Node 22.4 and the npm dependencies are needed to build, and Chrome to verify. Check that each drawing closes and that the error readout shrinks as harmonic detail rises.

常见问题

Is Epicycle Studio a prerecorded animation?

No. Epicycle Studio computes the circles, the endpoint and the line in the browser on every frame. The rotating vectors come from a Fourier transform of the authored path, so changing harmonic detail changes the drawing live. Reduced motion starts the reveal paused, and the scrubber lets you move to any point of it.

Can Epicycle Studio draw my own subject?

Yes. Epicycle Studio redraws any subject you add as a normalized vector path in src/drawings.ts and regenerates the Fourier coefficients. The path must be closed and non-degenerate, or the reconstruction fails. The shipped example holds three drawings, and you can replace them or add more.

Does Epicycle Studio call any model?

No. Epicycle Studio needs no key, model call, external asset or storage, so building and playing it costs nothing on SandBase.

Does Epicycle Studio include music?

Epicycle Studio bundles no song. It plays optional synthesized tones that start only after a user gesture, and a mute control turns them off. No recording ships in the package, so the HTML file stays a self-contained Canvas page with no audio assets.

What does Epicycle Studio output?

Epicycle Studio outputs one offline HTML file plus bilingual verification reports. The file runs on Canvas and includes both English and Simplified Chinese. Browser timing in the reports is indicative only and does not establish performance on a physical device. If the canvas fails to start, the page reports the failure in its UI.

Lab Skill · Video

Science MV

Explain science through visible causes, transformations and results.

Lab Skill · Video

Loop Story

Explain a cycle: build each stage, close the loop, then reveal the takeaway.

Lab Skill · Interactive scenes

Flux Rotor: Cobalt Drive

Inspect an original motor with real winding groups, alternating magnet sectors and a keyed shaft. Balanced phase currents drive prescribed synchronous rotation, material colors and spatial harmonic markers. Open the actual cutaway and separate six components offline. This display does not solve torque, efficiency or magnetic finite elements.

Lab Skill · Interactive scenes

Voxel Paddock: Mint Apex

Inspect an original open-wheel vehicle built from procedural cubes. Spin actual wheels on a stationary display, turn nominal geometric steering and separate twelve component groups. Edit bounded dimensions, voxel density and three palettes offline. This is not a driving or aerodynamics simulation.

Lab Skill · Interactive scenes

River Era: Valley Years

Scrub an authored river settlement timeline from camp and farms to town, workshops and speculative towers. Actual seeded geometry changes reversibly; boats and vehicles follow the same river and bank equations. This is an illustrative sequence rather than predictive history.

Lab Skill · Interactive scenes

3D Mechanical Watch Explorer

Inspect a kinematic mechanical watch with actual meshed tooth ratios, 54 components, axial explosion, material cutaway and bilingual mouse/touch controls. One offline HTML with optional synthesized tones.