Skip to main content

polygon

polygon() 

Draws a regular polygon.

polygon((0,0), 3, angle: 90deg)
polygon((2,0), 5)
polygon((4,0), 7)

Coordinate to draw the polygon at

sides:

Number of sides of the polygon (>= 3)

angle:

Default: 0deg

Angle angle to rotate the polygon arround its origin

Styling

Root: polygon

radius:

Default: 1

Radius of the polygon