diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 17:42:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 19:11:00 -0300 |
| commit | b54c6776953d3243ab5b8e676e747713827ab320 (patch) | |
| tree | d53be6cef4587b94531880af6479a1b5fa1aac39 /anim/src/cursor.zig | |
| parent | 3093eb55ac4a7054f51f06ea2786b5f9c9ec73f6 (diff) | |
| download | computeranim-b54c6776953d3243ab5b8e676e747713827ab320.tar.gz computeranim-b54c6776953d3243ab5b8e676e747713827ab320.zip | |
canim: the disassembly under the source everywhere; rings
From the user. In every split the disassembly stays under the source;
registers a scene never changes fold three to a row, and the stack takes
the room: nine to twenty slots where it had six. The graph's first form
is rings: a loop a ring its blocks sit on, an inner loop a smaller ring
touching its parent, a way out leaving along the tangent; layers stay
for functions without loops. Its layout comes from the code alone and it
shows nothing from after the moment: a block not reached yet is quiet
and is reached, a fold of what is not reached yet opens when the run
arrives. A pane unrolls from its strip into its whole column and rolls
back. The sqlite scene's strips move before their panes.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/cursor.zig')
| -rw-r--r-- | anim/src/cursor.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/anim/src/cursor.zig b/anim/src/cursor.zig index 9de02c1..16ccd77 100644 --- a/anim/src/cursor.zig +++ b/anim/src/cursor.zig @@ -142,6 +142,8 @@ pub const Cursor = struct { first: u64, last: u64, of: u32 = 0, + /// The stops the clock counts its way in (`journey`). + by: Recording.Stop = .moment, /// A cursor at rest at moment `start`. pub fn init(s: *anim.Frame, rec: *Recording, start: u64) Cursor { @@ -238,6 +240,7 @@ pub const Cursor = struct { /// what the head's progress line and step counter are measured against. pub fn journey(c: *Cursor, by: Recording.Stop, until: u64) void { c.last = until; + c.by = by; c.of = c.steps(by, c.first, until); } @@ -403,6 +406,8 @@ pub const Cursor = struct { // (the window gliding there, 24 f), then the pane fades through. const fit = c.levels.source_rows; const windows = [2]u32{ rec.shownFirst(fit, a), rec.shownFirst(fit, b) }; + // In the column the map has of the file: `unroll`, the window's travel, `roll` (96 f). + if (@import("source.zig").inColumn(rec, a.src, windows, fit)) return time.unroll.grow + time.unroll.travel + time.unroll.roll; if (@max(windows[0], windows[1]) - @min(windows[0], windows[1]) > fit) return 2 * time.move; if (windows[0] != windows[1]) return time.move; if (wave or jumps(rec, from, to)) return 2 * time.current_jump; |
