diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 20:08:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 21:45:12 -0300 |
| commit | 15de88cf82c187635c1989e91bfa639a10304066 (patch) | |
| tree | 16fa83854258c0c6aec1dff7f70ebabf5fd64c09 /anim/src/root.zig | |
| parent | 0ec2376cae2fdfc50e90d930ebc86c7a5b7f5594 (diff) | |
| download | computeranim-15de88cf82c187635c1989e91bfa639a10304066.tar.gz computeranim-15de88cf82c187635c1989e91bfa639a10304066.zip | |
canim: a column of text as an experiment; the disassembly tied to the stack
From the user. A scene may set its text in a column beside the panes a
beat is about: col.beat names the panes and their rows, where the text
is placed (beside, below, above, or on a drawing) and what it is level
with; panes the beat leaves out fold to their title bars on a shelf,
their changes struck there. Tried as two scenes beside the originals:
the call followed down (column) and a bubble on sort's rings
(column_sort).
annotation = .tied names the word an instruction touched and draws a
touch to its stack row; offsets count from the frame's base; rsp's pin
travels with its amount before the stack follows; .whole keeps the full
chain. carry = .arrow draws a value's way between memory and a register.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/root.zig')
| -rw-r--r-- | anim/src/root.zig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/anim/src/root.zig b/anim/src/root.zig index dca9a60..fcdb572 100644 --- a/anim/src/root.zig +++ b/anim/src/root.zig @@ -63,6 +63,14 @@ pub const Caption = words.Caption; pub const Label = words.Label; pub const Veil = words.Veil; pub const Legend = words.Legend; +/// The column (design/README.md, "column (an experiment)"): beat by beat, +/// the panes a beat is about on the left, its text beside them, the rest +/// folded to their tags on the shelf (`column.zig`). +const columns = @import("column.zig"); +pub const Column = columns.Column; +pub const column = columns.column; +/// A column pane's rows: what the column has left. +pub const column_rest = columns.rest; /// The page behind every scene: `pub const background = canim.background;`. pub const background: u32 = theme.color.page; @@ -334,7 +342,7 @@ pub fn context(s: *anim.Frame, cursor_: Cursor, options: Context.Options) Contex .registers = add(s, Registers{ .cursor = at, .stage = stage, .syscalls = options.syscalls, .quiet = options.quiet, .moves = moves }), .stack = add(s, Stack{ .cursor = at, .stage = stage }), .backtrace = add(s, Backtrace{ .cursor = at, .stage = stage, .lens = options.backtrace }), - .clock = add(s, Clock{ .cursor = at, .map = whole }), + .clock = add(s, Clock{ .cursor = at, .map = whole, .stage = stage }), }; } @@ -407,4 +415,5 @@ test { _ = @import("syscalls.zig"); _ = objects; _ = words; + _ = columns; } |
