Polygon

Regular polygon shape specification

Constructor

Polygon(
    pos: Point2D | None = None,
    rotation: float = 0,
    stroke_opacity: float = 0.5,
    num_sides: int = 5,
    radius: float = 10
) -> None

Properties

x
X position (from pos.x)
y
Y position (from pos.y)