^GD — Graphic Diagonal
Plain English
Draws a diagonal line inside a `w × h` bounding rectangle anchored at the current `^FO`. The `d` parameter picks which corner pair the line connects — `R` for top-left → bottom-right, `L` for top-right → bottom-left. The bounding box itself is not drawn; only the diagonal stroke.
When to use
For crossing out a region (combine `R` + `L` for a void X), drawing arrow-stroke decorations, or precisely angled separator lines whose slope is set by the `w:h` ratio of the bounding box.
Syntax
^GDw,h,t,c,d
Parameters
| Parameter | Description |
|---|---|
w | Width of the bounding rectangle in dots — sets the horizontal span of the diagonal |
h | Height of the bounding rectangle in dots — sets the vertical span of the diagonal |
t | Line thickness in dots (1 minimum) |
c | Colour: `B` (black) or `W` (white — knocks out underlying ink) |
d | Direction: `R` = top-left → bottom-right (forward slash); `L` = top-right → bottom-left (back slash). Default `R`. |
Example
^XA ^FO50,50^GD200,200,3,B,R^FS ^FO50,50^GD200,200,3,B,L^FS ^XZ
Two diagonals at the same `^FO` anchor, opposite directions, forming a "void X" inside a 200×200 box.