box(x, y, w, h, mode)
Draw a box with optional modes: 'fill' (default), 'outline', 'inline'. Add '*center' to draw from center. Use ':N' for thickness.
| Name | Type | Required | Description |
|---|---|---|---|
x, y |
number | yes | Top-left or center position (depending on mode). |
w, h |
number | yes | Box width and height. |
mode |
string | no | fill/outline/inline with optional center and thickness modifiers. |
void
No additional runtime notes yet.
box() A random boxbox(x, y, size) Square from top left cornerbox(x, y, w, h) Rectangle from top left cornerbox(x, y, size, mode) Square with modebox(x, y, w, h, mode) Rectangle with modemode
center - paints a box from the centeroutline - paints the outline of a boxinline - the opposite of outline: like outline:4)
* like outline*center or inline:3*center