summaryrefslogtreecommitdiff
path: root/anim/src/theme.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 20:08:07 -0300
committerGabriel Schneider <[email protected]>2026-11-11 21:45:12 -0300
commit15de88cf82c187635c1989e91bfa639a10304066 (patch)
tree16fa83854258c0c6aec1dff7f70ebabf5fd64c09 /anim/src/theme.zig
parent0ec2376cae2fdfc50e90d930ebc86c7a5b7f5594 (diff)
downloadcomputeranim-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/theme.zig')
-rw-r--r--anim/src/theme.zig20
1 files changed, 20 insertions, 0 deletions
diff --git a/anim/src/theme.zig b/anim/src/theme.zig
index 8d4b044..90ad36b 100644
--- a/anim/src/theme.zig
+++ b/anim/src/theme.zig
@@ -767,6 +767,8 @@ pub const metric = struct {
pub const tie = struct {
pub const thread_x = 54;
pub const link_lane = 950;
+ /// The `touch`'s, from a row of the disassembly to a word of the stack.
+ pub const touch_lane = 956;
pub const projection_lane = 962;
pub const radius = 8;
pub const projection_radius = 6;
@@ -1034,6 +1036,24 @@ pub const time = struct {
pub const out = 0.20;
pub const names = 0.20;
};
+ /// Under `tied` (design/README.md, `touch`, `carry`, `travel`,
+ /// `follow`): the touch draws `touch` (`touch_long` past six rows); the
+ /// carry `carry` (`carry_long` past eight); rsp's and rbp's pins travel
+ /// `stack_pin` to the next row and `stack_pin_row` a further one,
+ /// `stack_pin_most` at most (at a run `run_ease`, 2 f a row, `run_pin_most`);
+ /// the window follows `follow`, 2 f a further slot, `follow_most` at most.
+ pub const tied = struct {
+ pub const touch = 0.20;
+ pub const touch_long = 0.30;
+ pub const carry = 0.30;
+ pub const carry_long = 0.40;
+ pub const stack_pin = 0.40;
+ pub const stack_pin_row = 0.10;
+ pub const stack_pin_most = 0.80;
+ pub const run_pin_most = 16.0 / 60.0;
+ pub const follow = 0.40;
+ pub const follow_most = 0.60;
+ };
/// `leave` (and `turn`, round a ring's foot): the jump fires; the
/// compare's chips framed as read from `chips` (the CPU's slot); the
/// edge it takes drawn gold over `edge`, ending as the mark sets off at