Function makeStarPolyline

  • Make a star polyline; a line which creates a star polygon.

    Parameters

    • outerRadius: number

      The radius of the star's tips.

    • innerRadius: number

      The radius of the star's middle vertices.

    • sides: number

      The amount of tips in the star.

    • clockwise: boolean = false

      Should the polyline be in clockwise order? False by default.

    Returns vec2[]

Generated using TypeDoc