DynamicShader

interface DynamicShader

DynamicShader creates Shader instances on demand.

See also

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getColorAt(point: Point, context: DrawContext, bounds: RectF): Int

Gets the color of the pixel at the given point. bounds specifies the shaded area.

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.