---
title: "conicGradient(colors:center:angle:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/shapestyle/conicgradient(colors:center:angle:)"
---

# conicGradient(colors:center:angle:)

A conic gradient defined by a collection of colors that completes a full turn.

## Declaration

```swift
static func conicGradient(colors: [Color], center: UnitPoint, angle: Angle = .zero) -> AngularGradient
```

## Parameters

- `colors`: The colors of the gradient, evenly spaced along its full length.
- `center`: The relative center of the gradient, mapped from the unit space into the bounding rectangle of the filled shape.
- `angle`: The angle to offset the beginning of the gradient’s full turn.

## Discussion

Discussion For more information on how to use conic gradients, see conicGradient(_:center:angle:).

## See Also

### Conic gradients

- [conicGradient(_:center:angle:)](swiftui/shapestyle/conicgradient(_:center:angle:).md)
- [conicGradient(stops:center:angle:)](swiftui/shapestyle/conicgradient(stops:center:angle:).md)
