DynamicShader

fun interface DynamicShader

DynamicShader creates Shader instances on demand.

See also

Inheritors

Functions

Link copied to clipboard
open fun provideShader(context: DrawContext, bounds: RectF): Shader

Creates a Shader by using the provided bounds.

abstract fun provideShader(context: DrawContext, left: Float, top: Float, right: Float, bottom: Float): Shader

Creates a Shader by using the provided left, top, right, and bottom bounds.