summaryrefslogtreecommitdiff
path: root/anim/src/theme.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/theme.zig')
-rw-r--r--anim/src/theme.zig31
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).