---
title: "init(points:innerRadius:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/shapemarkup/shape-swift.enum/star-swift.struct/init(points:innerradius:)"
---

# init(points:innerRadius:)

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

## Declaration

```swift
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.
