Repository navigation
feat: export animated SVG - #17
Merged
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
render --animated -o out.svg(andrender(..., animated=True)in Python) writes theframes 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