mark
mark()
Draws a single mark pointing towards a target coordinate.
Note: To place a mark centered at the first coordinate (from) use the marks anchor: "center" style.
Styling
Root: mark
You can directly use the styling from mark styling.
// Show a grid
grid((-1, -1), (1, 1), stroke: gray)
// Draw a mark with its tip at (0, 0) pointing to (1, 0)
mark((0, 0), (1, 0), symbol: ")>", scale: 4)
// Show a grid
grid((-1, -1), (1, 1), stroke: gray)
// Draw a mark with its center at (0, 0) pointing to (1, 1)
mark((0, 0), (1, 1), symbol: ">>", anchor: "center", scale: 5)
from:
The position to place the mark.
to:
coordinate or angle
The position or angle the mark should point towards.