---
title: "init(angle:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/imagerotator/init(angle:)"
---

# init(angle:)

Creates a transformer that rotates an image by a specified angle.

## Declaration

```swift
init(angle: Double)
```

## Parameters

- `angle`: The angle, in radians, by which to rotate the coordinate space of the specified context. Positive values rotate counterclockwise and negative values rotate clockwise.
