added bit separators

This commit is contained in:
2025-11-21 16:50:46 +01:00
parent 6095b5784e
commit aeb413abb4

View File

@@ -36,13 +36,31 @@
name: str(rank)
)
// Range boundaries
if rank in boundaries and j != struct.bits - 1 {
draw.line(
str(rank) + ".north-east",
str(rank) + ".south-east",
stroke: config.border-color
)
if j != struct.bits - 1 {
let top = str(rank) + ".north-east"
let bottom = str(rank) + ".south-east"
// Group boundary
if rank in boundaries {
draw.line(
top,
bottom,
stroke: config.border-color
)
// Bit separator
} else {
draw.line(
top,
((), 20%, bottom),
stroke: config.border-color
)
draw.line(
bottom,
((), 20%, top),
stroke: config.border-color
)
}
}
}
})