PLAYGROUND (experimental)

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

NameTypeRequiredDefaultDescription
pointsyes-list of coords x1/y1 and x2/y2
stroke-#000000Stroke color
fill-#FFFFFFFill color
weight-1.00Stroke weight (thickness)