---
title: "InnerShadowPainter"
description: "[Painter] implementation that draws an inner shadow with the geometry defined by the specified
shape and [Shadow]."
type: "class"
---

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


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

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


```kotlin
class InnerShadowPainter
internal constructor(
    private val shape: Shape,
    private val shadow: Shadow,
    private val renderCreator: InnerShadowRendererProvider = InnerShadowRendererProvider.Default,
) : Painter()
```


`Painter` implementation that draws an inner shadow with the geometry defined by the specified
shape and `Shadow`.


## Secondary Constructors

```kotlin
constructor(
    shape: Shape,
    shadow: Shadow,
) : this(shape, shadow, InnerShadowRendererProvider.Default)
```


Create an `InnerShadowPainter` with the specified `shape` and `shadow`. It is preferred to
obtain an instance of the `InnerShadowPainter` through a `ShadowContext` instance instead, as
the underlying shadow dependencies can be shared across multiple `InnerShadowPainter`
instances. However, creating an instance through this constructor will not share resources
with any other `InnerShadowPainter`.

#### Parameters

| | |
| --- | --- |
| shape | Shape of the shadow |
| shadow | Parameters used to render the shadow |




