Sets the number of sides.
Sets the center point X.
Sets the center point Y.
Sets whether the polygon is inscribed or circumscribed. Inscribed means the polygon is drawn inside the given radius and the all the summits are touching the circle given by the radius. Circumscribed means the polygon is drawn outside the given radius and the middle of all segment are touching the circle given by the radius.
Sets the radius.
Optional. Sets the final angle to rotate the polygon by its center point. Angles are in degrees and counter-clock wise. If omitted, it will be set to 0.