---
title: "init(configuration:frame:rotation:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/shapemarkup/init(configuration:frame:rotation:)"
---

# init(configuration:frame:rotation:)

Initializes and returns a new shape markup from the specified parameters.

## Declaration

```swift
init(configuration: ShapeConfiguration, frame: CGRect, rotation: CGFloat = 0.0)
```

## Parameters

- `configuration`: The configuration of the shape.
- `frame`: The frame of the shape.
- `rotation`: The rotation in radians of the shape. Defaults to 0.0 (no rotation).
