---
title: "angularGradient(stops:center:startAngle:endAngle:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/shapestyle/angulargradient(stops:center:startangle:endangle:)"
---

# angularGradient(stops:center:startAngle:endAngle:)

An angular gradient defined by a collection of color stops.

## Declaration

```swift
static func angularGradient(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> AngularGradient
```

## Parameters

- `stops`: The color stops of the gradient, defining each component color and their relative location along the gradient’s full length.
- `center`: The relative center of the gradient, mapped from the unit space into the bounding rectangle of the filled shape.
- `startAngle`: The angle that marks the beginning of the gradient.
- `endAngle`: The angle that marks the end of the gradient.

## Discussion

Discussion For more information on how to use angular gradients, see angularGradient(_:center:startAngle:endAngle:).

## See Also

### Angular gradients

- [angularGradient(_:center:startAngle:endAngle:)](swiftui/shapestyle/angulargradient(_:center:startangle:endangle:).md)
- [angularGradient(colors:center:startAngle:endAngle:)](swiftui/shapestyle/angulargradient(colors:center:startangle:endangle:).md)
