🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

ShaderBrush

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

Source set: Common
public 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

transform

Source set: Common
public var transform: Matrix? = null

A transformation matrix for the shader.

Functions

createShader

Source set: Common
public abstract fun createShader(size: Size): Shader