diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 02:19:28 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | e2daafff2ed8cc20438d05722575db69fa9ba823 (patch) | |
| tree | 6f1052394d447ef2a473f3cae6a3e74e407cfb62 /src/vector/svg.zig | |
| parent | 13a6f2f920c3b6d69362720318a404900f27cdf6 (diff) | |
| download | sketchbook-e2daafff2ed8cc20438d05722575db69fa9ba823.tar.gz sketchbook-e2daafff2ed8cc20438d05722575db69fa9ba823.zip | |
anim: play's .lag staggers its animations, manim's lag ratio, 0 by default
The option was read into every key (default 0.08) and never used. Now
animation i of a play of n starts i * lag * each after the play does,
each = seconds / (1 + lag * (n - 1)), so the last still ends with the play
and the play keeps its length: manim's AnimationGroup run to a run_time. A
lag of 1 is one after another. An object two animations of one play change
moves with the first (Change.at); the camera with the first camera
animation. Compiled and live scenes agree: a live play shows an animation
from its own key's start, as the compiled lookup does. Default 0, so every
key of a scene without .lag is the bits it was (start + 0, seconds / 1).
What changes: examples/manual.zig, slide 1: 83, C0, 01 and add eax, 1
were written all at once over 1.5 s, now one after another (0.79 s each,
0.24 s apart); the six labels and three bytes of the flight played
together, now in order, 0.12 s apart, 0.58 s each (exported frames 22.0-
23.4 s and 25.1-26.4 s). vecanim's intro passes .lag to a play of one
write: unchanged.
Tests: anim: a lagged play (four at 0.5, then two at 1) live against
compiled at 16 instants, and its times. test-anim, test-talk, test-manual
pass; the compiled scene's export (92 frames), the talk's two (364) and
every scene screenshot are byte-identical to before, but for the player
bar's wall-clock record time; manual's exports differ in those 29 frames
only, its screenshots not at all.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/vector/svg.zig')
0 files changed, 0 insertions, 0 deletions
