Contents

init(points:innerRadius:)

Create a new star shape with alternating inner and outer points.

Declaration

init(points: Int, innerRadius: CGFloat)

Parameters

  • points:

    The number of points on the star.

  • innerRadius:

    The radius of inner points relative to outer points, in unit coordinate space (0.0 to 1.0). A value of 0.5 creates inner points halfway to the center.