Wilang Documentation1.0.0+4

rectangle#

Draw a centered, axis-aligned rectangle.

Available in: math cells.

Syntax#

rectangle(center, width, height)

Arguments and behavior#

The center is a two-element array such as [0, 0]. The width and height are measured in world units. Use the rotation style to turn the rectangle.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
plot(rectangle([0, 0], 4, 2))

Expected result: plot.

See also#

plot

All functions · Math guides