Skip to content

feat: export animated SVG - #17

Merged
simonhdickson merged 2 commits into
mainfrom
ccr-983f5692-c6fx56
Oct 26, 2026
Merged

simonhdickson merged 2 commits into
mainfrom
ccr-983f5692-c6fx56

Conversation

@simonhdickson

Copy link
Copy Markdown
Owner

render --animated -o out.svg (and render(..., animated=True) in Python) writes the
frames as one SVG that plays and loops in a browser, instead of a directory of frames.
Each run of identical frames is written once and shown in turn with SMIL on
display; gradient ids are prefixed per frame so they stay unique.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01TrSUNqRpS2fdcmw7RzysuV

`render --animated -o out.svg` (and `render(..., animated=True)` in Python) writes the
frames as one SVG that plays and loops in a browser, instead of a directory of frames.
Each run of identical frames is written once and shown in turn with SMIL <animate> on
`display`; gradient ids are prefixed per frame so they stay unique.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TrSUNqRpS2fdcmw7RzysuV
… scene

render and still take -f/--format (mp4, webm, gif, png, svg, animated-svg; png and svg
write folders of frames). Without -o the output is named after the scene: the Python
function, the Rhai script or the Rust binary. -o still overrides it, and without -f its
extension still picks the format. The Python API matches: render(format=...), with
SceneFn.render defaulting to the function's name. --animated / animated= give way to
animated-svg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TrSUNqRpS2fdcmw7RzysuV
@simonhdickson
simonhdickson merged commit cdca035 into main Oct 26, 2026
8 checks passed
@simonhdickson
simonhdickson deleted the ccr-983f5692-c6fx56 branch October 26, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants