diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 14:43:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 16:17:33 -0300 |
| commit | 3093eb55ac4a7054f51f06ea2786b5f9c9ec73f6 (patch) | |
| tree | f1bc91879a447f178dfaba39d0df107d01e557bd /anim/src/theme.zig | |
| parent | a72831d5c322078260314c305ddd940e4967947d (diff) | |
| download | computeranim-3093eb55ac4a7054f51f06ea2786b5f9c9ec73f6.tar.gz computeranim-3093eb55ac4a7054f51f06ea2786b5f9c9ec73f6.zip | |
canim: a minimap in each pane; source wherever it can be had, libc's included
From the user. Each pane with more than it shows carries a strip of its
whole column at its right edge, the pane's window outlined and what
happens off it marked there; the corner minimap is gone and the dive
folds each column of the map into its pane's strip. The source panel
follows the pc into any file the build has: glibc's own, from the
distro's debuginfod by an optional step that caches them by build id
(zig build sources; nothing else touches the network), and musl's, from
Zig's lib directory. The syscalls scene shows open64.c on the way down,
and a new scene follows the same call through a Zig-built musl. A
graph's counts and inks are as of the moment shown.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/theme.zig')
| -rw-r--r-- | anim/src/theme.zig | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/anim/src/theme.zig b/anim/src/theme.zig index 7d505d7..156088c 100644 --- a/anim/src/theme.zig +++ b/anim/src/theme.zig @@ -47,8 +47,7 @@ pub const canvas = struct { /// The map (design/README.md, "The map and the minimap"): the working /// frame unfolded on a stage of 3840 by 2160 at the context's type size, /// four columns of 880; the working frame's windows outlined on it (2 in -/// `dim`, 4 out). The minimap: the map at a twentieth in the caption -/// band's right end, under the clock's, whose count moves left of it. +/// `dim`, 4 out). Each pane's minimap is a `strip` of its own column. pub const map = struct { pub const width = 3840; pub const height = 2160; @@ -62,11 +61,29 @@ pub const map = struct { pub const disasm_rows = 69; pub const memory_rows = 32; }; -pub const minimap = struct { - pub const box: Rect = .{ .x = 1664, .y = 912, .w = 192, .h = 108 }; - pub const scale = 1.0 / 20.0; - /// The clock's count, ranged right here. - pub const count_end = 1648; +/// A pane's minimap: its column of the map in a strip 40 wide inside its +/// frame at its right (inside the 2-unit rule), under the tag, on `well`; +/// a row of the map 4 units (a stroke 3 high), its 880 across 36, from 2 +/// in; the window framed 2 in primary; marks 4 by 4 at a row's left, 5 +/// apart. The pane's content keeps 8 from it: the strip costs it 48, and +/// the disassembly's annotation column 24 (564 to 540). +pub const strip = struct { + pub const w = 40; + pub const inset = 2; + pub const cost = 48; + pub const pitch = 4; + pub const stroke = 3; + pub const across = 36.0 / 880.0; + pub const left = 2; + pub const mark = 4; + pub const mark_apart = 5; + pub const held = 2; + pub const window = 2; + /// Above the first row; under the last, the dots where the column goes on. + pub const top = 2; + pub const foot = 4; + /// A row's text 65% of the way from the page to its ink. + pub const ink = 0.65; }; /// Left edge of column `i` (0 to 11). |
