<h2 id="radialgradientbackground-cap">radialGradientBackground</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun CurvedModifier.radialGradientBackground(
    vararg colorStops: Pair<Float, Color>,
    cap: StrokeCap = StrokeCap.Butt,
): CurvedModifier
```

Specifies a radial gradient background for a curved element.

#### Parameters

| | |
| --- | --- |
| colorStops | Colors and their offset in the gradient area. Note that the offsets should be in ascending order. 0 means the outer curve and 1 means the inner curve of the curved element. |
| cap | How to start and end the background. |

<hr class="docs-overload-divider">

<h2 id="radialgradientbackground-colors-cap">radialGradientBackground</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun CurvedModifier.radialGradientBackground(
    colors: List<Color>,
    cap: StrokeCap = StrokeCap.Butt,
): CurvedModifier
```

Specifies a radial gradient background for a curved element.

#### Parameters

| | |
| --- | --- |
| colors | Colors in the gradient area. Gradient goes from the outer curve to the inner curve of the curved element. |
| cap | How to start and end the background. |