box
Draw a rectangle, knowing the coordinates of the points on its diagonals (from a get_bbox).
box(
points,
[stroke=#000000],
[fill=#FFFFFF],
[weight=1.00]
)
Draw a rectangle, knowing the coordinates of the points on its diagonals (from a get_bbox).
Syntaxe
rectangle(points=[10,10, 15,15], stroke="#000000", fill="#FFA000", weight=4)
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
points | yes | - | list of coords x1/y1 and x2/y2 | |
stroke | - | #000000 | Stroke color | |
fill | - | #FFFFFF | Fill color | |
weight | - | 1.00 | Stroke weight (thickness) |