Styling

Shapes and text take style qualifiers. Boxes accept fill, stroke, and dashed; colours are names or #rgb/#rrggbb hex:

Styled box

Open in editor

box "Styled" fill yellow stroke #222 dashed at (200, 100)

Text takes fill, textsize, bold, and italic, alongside the alignment qualifiers from the previous page:

Styled text

Open in editor

text "Heading" fill #336699 textsize 18 bold italic align center at (200, 80)

You can anchor a shape by a named point using with — for example place its north-west corner (.nw) at a coordinate:

Anchored shape

Open in editor

box "anchored" with .nw at (60, 60)

Next: connect shapes precisely with Anchors and lines.