Skip to main content

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)

The position to place the mark.

The position or angle the mark should point towards.

..style:

If the third positional argument is of type string, it is treated as mark name (e.g. ">") and overrules style keys such as mark.symbol or mark.end