<div class='type'>Function</div>


<a id='references'></a>


<h2 id="radialgradientshader-center-radius-colors-colorstops-tilemode">RadialGradientShader</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun RadialGradientShader(
    center: Offset,
    radius: Float,
    colors: List<Color>,
    colorStops: List<Float>? = null,
    tileMode: TileMode = TileMode.Clamp,
): Shader
```


Creates a radial gradient centered at `center` that ends at `radius` distance from the center.

If `colorStops` is provided, each value is a number from 0.0 to 1.0 that specifies where the
color at the corresponding index in `colors` begins in the gradient. If `colorStops` is not
provided, then the colors are dispersed evenly

The behavior before and after the radius is described by the `tileMode` argument. For details,
see the `TileMode` enum.

The behavior outside of the bounds of `center` +/- `radius` is described by the `tileMode`
argument. For details, see the `TileMode` enum. If no `TileMode` is provided the default value of
`TileMode.Clamp` is used