androidx.compose.ui.graphics

ShaderBrush

Abstract class · from org.jetbrains.compose.ui:ui-graphics:1.12.2

No hand-written docs yet.

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

abstract class ShaderBrush : Brush

Is a

Kinds of ShaderBrush

Anywhere a ShaderBrush is expected, you can pass any of these.

How to get one

Create it

Properties

transform

val transform: Matrix?

A transformation matrix for the shader.

Functions

createShader

fun createShader(size: Size): Shader
Library docs

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