PiDraw API
    Preparing search index...

    Interface PolygonRegular

    The regular polygon of a center and a radius, with sides sides (an integer from 3 to 1000). Its first vertex is above the center, then they follow counterclockwise.

    star makes it a regular star polygon {sides/star}: the vertices are joined star by star ({5/2} is the pentagram), with star an integer from 1 (the convex polygon, the default) to less than half of sides. When sides and star have a common divisor the figure is made of several polygons: {6/2} is two triangles.

    interface PolygonRegular {
        center: XY;
        radius: PolygonRadius;
        sides: number;
        star?: number;
    }
    Index
    center: XY
    sides: number
    star?: number