grid
grid()
Draws a grid between two coordinates
// Draw a grid
grid((0,0), (2,2))
// Draw a smaller blue grid
grid((1,1), (2,2), stroke: blue, step: .25)
from:
The top left of the grid
to:
The bottom right of the grid
Styling
Root: grid
step:
1
Distance between grid lines. A distance of means to draw a grid line every length units in x- and y-direction. If given a dictionary with x
and y
keys or a tuple, the step is set per axis.
Anchors
Supports border anchors.