---
title: "ShadowScope"
description: "Scope that can be used to define properties to render either a drop shadow or inner shadow. This
includes the [radius], [spread], [color], [brush], [alpha], [blendMode], and [offset] parameters."
type: "interface"
---

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


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

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



```kotlin
@JvmDefaultWithCompatibility
interface ShadowScope : Density
```


Scope that can be used to define properties to render either a drop shadow or inner shadow. This
includes the `radius`, `spread`, `color`, `brush`, `alpha`, `blendMode`, and `offset` parameters.


## Properties

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


```kotlin
var radius: Float
```


Blur radius of the shadow, in pixels. Defaults to 0.



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


```kotlin
var spread: Float
```


Spread parameter that adds to the size of the shadow, in pixels. Defaults to 0.



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


```kotlin
var color: Color
```


Color of the shadow, Defaults to `Color.Black`. Attempts to provide Color.Unspecified will
fallback to rendering with `Color.Black`. This parameter is consumed if `brush` is null.



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


```kotlin
var brush: Brush?
```


The brush to use for the shadow. If null, the color parameter is consumed instead



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


```kotlin
var alpha: Float
```


Opacity of the shadow. Defaults to 1f indicating a fully opaque shadow



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


```kotlin
var blendMode: BlendMode
```


Blending algorithm used by the shadow. Defaults to `BlendMode.SrcOver`



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


```kotlin
var offset: Offset
```


Offset of the shadow. Defaults to `Offset.Zero`.




