diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 08:04:49 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 3571b3e8bfb54d6f98ad3bc1f89147275716e5fc (patch) | |
| tree | f2bcff6ba76b3f4593cc72c89a7ce66d04a5afbd /examples/shaders/test/reload.script | |
| parent | f0c4ef1a771f6b13cbd86cccdb56accfd39bbd69 (diff) | |
| download | sketchbook-3571b3e8bfb54d6f98ad3bc1f89147275716e5fc.tar.gz sketchbook-3571b3e8bfb54d6f98ad3bc1f89147275716e5fc.zip | |
examples/live: the storyboard as a script, two minutes typed through the editor
test/story.script plays the survey's storyboard (reports/demo1.md, the
screen and the storyboard) through the editor and asserts State at each
beat: a tone typed (`out` 8 instructions, heard on the stream); 220
dragged with the pointer to 330 (245 on the way); a gradient (`color`
10, ending in hsv); `beat`, `kick` and `thump` opened above, `out =
thump`, the colour's brightness times `0.5 + kick` (both tapes now hold
the kick's exp: the picture pulses because it says kick); the last `)`
deleted (the problem at its byte, 162, the tape unchanged) and typed
back; inside thump's `sin(...)` (`f*`, `;`, `mi(`), Alt-o hears and sees
the call alone (17 instructions ending in sin) and Alt-i its argument
(16), Escape the program again; `root` with `seq`, `bass`, `out = bass +
thump`, `r` and the ring (`out` 35, `color` 31). Then the session played
back, paused, sought to the tone and the kick (each the live moment,
leaf by leaf), stepped back 30 frames (0.9 s, the gradient), live again
at the kick with the beat made a third faster (`f2`, `;`, `r3`), and the
first session sought to its end as it was: nothing overwritten. Each
beat's screenshot lands in .zig-cache/story/, named by it; the test step
plays it with test/live.script. The storyboard's programs use the
square units (`x / 4`, `y / 2 + 0.5` for a gradient over the window).
zig build test: 86 of 86 steps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'examples/shaders/test/reload.script')
0 files changed, 0 insertions, 0 deletions
