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

# star(points:innerRadius:)

A star shape with alternating inner and outer points.

## Declaration

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