-
public final class LinearGradientShaderKt
-
-
Method Summary
Modifier and Type Method Description final static DynamicShaderhorizontalGradient(Array<Color> colors, FloatArray positions)Creates a DynamicShader in the form of a horizontal gradient. final static DynamicShaderverticalGradient(Array<Color> colors, FloatArray positions)Creates a DynamicShader in the form of a vertical gradient. -
-
Method Detail
-
horizontalGradient
final static DynamicShader horizontalGradient(Array<Color> colors, FloatArray positions)
Creates a DynamicShader in the form of a horizontal gradient.
- Parameters:
colors- the sRGB colors to be distributed along the gradient line.positions- controls the position of each color on the gradient line.
-
verticalGradient
final static DynamicShader verticalGradient(Array<Color> colors, FloatArray positions)
Creates a DynamicShader in the form of a vertical gradient.
- Parameters:
colors- the sRGB colors to be distributed along the gradient line.positions- controls the position of each color on the gradient line.
-
-
-
-