StaticShader

Creates a DynamicShader, which always provides the same Shader instance.

Constructors

Link copied to clipboard
constructor(shader: Shader)

Functions

Link copied to clipboard
open override 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.