regular_polygon

regular_polygon(num_sides, radius, angle=0)

A polygon shape where all sides have equal length

Parameters:
num_sides : int

Number of sides.

radius : float

Radius of the circle which connects all the vertices of the polygon.

angle : float

Rotate the polygon.

Returns:
Polygon