TopBottomShader
class TopBottomShader(var topShader: DynamicShader, var bottomShader: DynamicShader, var splitY: Float = 0.0f) : CacheableDynamicShader
Splits the shaded area into two parts and applies two other DynamicShaders, topShader and bottomShader. splitY expresses the distance of the split from the top of the shaded area as a fraction of the area’s height.
Functions
Link copied to clipboard
Link copied to clipboard
Gets the color of the pixel at the given point. bounds specifies the shaded area.
Link copied to clipboard
open override fun provideShader(context: DrawContext, left: Float, top: Float, right: Float, bottom: Float): Shader