Wilang Documentation1.0.0+4

pentagon#

Draw a centered regular pentagon.

Available in: math cells.

Syntax#

pentagon(center, radius)

Arguments and behavior#

The center is a two-element array and the radius is the circumradius. This is a convenience spelling of regularPolygon(center, 5, radius).

Example#

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

Example
plot(pentagon([0, 0], 2))

Expected result: plot.

See also#

plot

All functions · Math guides