regular_polygon

regular_polygon(num_sides: int, radius: float, angle: float = 0) Polygon

A polygon shape where all sides have equal length

Parameters:
num_sidesint

Number of sides.

radiusfloat

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

anglefloat

Rotate the polygon.

Returns:
Polygon