---
title: "ShaderBrush"
description: "Brush implementation that wraps and applies a the provided shader to a [Paint] The shader can be
lazily created based on a given size, or provided directly as a parameter"
type: "class"
---

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


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

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


```kotlin
abstract class ShaderBrush() : Brush()
```


Brush implementation that wraps and applies a the provided shader to a `Paint` The shader can be
lazily created based on a given size, or provided directly as a parameter


## Properties

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


```kotlin
var transform: Matrix?
```


A transformation matrix for the shader.



## Functions

```kotlin
abstract fun createShader(size: Size): Shader
```


