summaryrefslogtreecommitdiff
path: root/core/surface.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/surface.zig')
-rw-r--r--core/surface.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/surface.zig b/core/surface.zig
index 3ab9a933..3452bc77 100644
--- a/core/surface.zig
+++ b/core/surface.zig
@@ -150,7 +150,15 @@ pub const max_rail_ticks = 4096;
/// A pinned change's lane on a body row (jj.paint): a pixel shell draws
/// it as a strip in gutter cell `x`, at its `level`'s place (sample A of
/// the ruled design: each a third of a cell wide, half that of air between).
-pub const Lane = struct { x: u16, y: u16, level: u8, rgb: [3]u8 };
+pub const Lane = struct {
+ x: u16,
+ y: u16,
+ level: u8,
+ rgb: [3]u8,
+
+ /// The levels a row shows at most: the ruled gutter fits three.
+ pub const levels = 3;
+};
/// Churn's strip on a rail (jj.railHeat): a pixel shell draws its row of
/// pane `owner`'s rail, beside the track, in `rgb`.
pub const Heat = struct { owner: u8, row: u16, rgb: [3]u8 };