DynamicShader

fun interface DynamicShader

Creates Shaders on demand.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

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

Creates a Shader by using the provided bounds.

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

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