---
title: "SweepGradient"
description: "Brush implementation used to apply a sweep gradient on a given [Paint]"
type: "class"
---

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


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

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


```kotlin
class SweepGradient
internal constructor(
    internal val center: Offset,
    @Suppress("PrimitiveInCollection") internal val colors: List<Color>,
    @Suppress("PrimitiveInCollection") internal val stops: List<Float>? = null,
) : ShaderBrush(), Interpolatable
```


Brush implementation used to apply a sweep gradient on a given `Paint`



