Expand description
What lies under the diagram: the canvas fill and the grid over it.
One rule, read by every backend. The grid is not in the display list — it is drawn from the camera, so it stays sharp at any zoom and costs nothing to record — which would otherwise leave each backend to decide for itself where a line falls and how heavy it is.
Structs§
- Ground
- The two raw colours a backend paints the ground with. The app resolves these from its theme, so a backend never needs to know about roles.
Enums§
- Grid
Line - The two weights the grid is drawn in.
Constants§
- MAJOR_
STEP 🔒 - Every fourth grid line is a major one.
- MIN_
MINOR_ 🔒SPACING - Screen-space spacing below which the minor grid lines are dropped, as they read as a wash of colour rather than a grid.
Functions§
- along 🔒
- World coordinates of the grid lines crossing
spanon one axis, each with its weight. Minor lines are skipped once they crowd together on screen. - horizontals
- Screen y of every grid line crossing
viewporthorizontally, each with its weight. - screen 🔒
- verticals
- Screen x of every grid line crossing
viewportvertically, each with its weight.