regularPolygon

fun regularPolygon(sides: Int, center: Vector2 = Vector2.ZERO, radius: Double = 100.0, phase: Double = 0.0): ShapeContour(source)

Creates a regular polygon at center with the given sides and radius. Specify a phase in degrees to rotate it.