The Developer Preview for Android 11 is now available; test it out and share your feedback.

ShaderBrush

open class ShaderBrush : Brush
kotlin.Any
   ↳ androidx.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

open Unit

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

Shader

Public constructors

<init>

ShaderBrush(shader: Shader)

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

Public methods

applyTo

open fun applyTo(p: Paint): Unit

Properties

shader

val shader: Shader