Google is committed to advancing racial equity for Black communities. See how.

ShaderBrush

@Immutable open class ShaderBrush : Brush
kotlin.Any
   ↳ androidx.compose.ui.graphics.Brush
   ↳ androidx.compose.ui.graphics.ShaderBrush

Brush implementation that wraps and applies a the provided shader to a Paint

Summary

Public constructors
<init>(shader: Shader)

Brush implementation that wraps and applies a the provided shader to a Paint

Public methods
Unit
applyTo(p: Paint, alpha: Float)

Properties
Shader

Public constructors

<init>

ShaderBrush(shader: Shader)

Brush implementation that wraps and applies a the provided shader to a Paint

Public methods

applyTo

fun applyTo(
    p: Paint,
    alpha: Float
): Unit

Properties

shader

val shader: Shader