Contents

star(points:innerRadius:)

A star shape with alternating inner and outer points.

Declaration

static func star(points: Int, innerRadius: CGFloat) -> ShapeMarkup.Shape

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.