---
title: "hueRotation(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/graphicscontext/filter/huerotation(_:)"
---

# hueRotation(_:)

Returns a filter that applies a hue rotation adjustment.

## Declaration

```swift
static func hueRotation(_ angle: Angle) -> GraphicsContext.Filter
```

## Parameters

- `angle`: The amount by which to rotate the hue value of each pixel.

## Return Value

Return Value A filter that applies a hue rotation adjustment.

## Discussion

Discussion This filter is equivalent to the hue-rotate filter primitive defined by the Scalable Vector Graphics (SVG) specification.

## See Also

### Manipulating color

- [saturation(_:)](swiftui/graphicscontext/filter/saturation(_:).md)
- [colorInvert(_:)](swiftui/graphicscontext/filter/colorinvert(_:).md)
- [colorMultiply(_:)](swiftui/graphicscontext/filter/colormultiply(_:).md)
- [grayscale(_:)](swiftui/graphicscontext/filter/grayscale(_:).md)
- [colorMatrix(_:)](swiftui/graphicscontext/filter/colormatrix(_:).md)
