createRuntimeShader

@Nullable
open fun createRuntimeShader(color: Int, startAlpha: Float, interpolator: Array<Float>): @Nullable RuntimeShader

Creates an AGSL RuntimeShader with specified color, start alpha, and interpolator.

Return

a new RuntimeShader instance, or null on API levels <33

Parameters

color

the color to apply

startAlpha

the starting alpha value

interpolator

the cubic bezier easing control points