Package 

Class LinearGradientShaderKt

    • Method Summary

      Modifier and Type Method Description
      final static DynamicShader horizontalGradient(Array<Color> colors, FloatArray positions) Creates a DynamicShader in the form of a horizontal gradient.
      final static DynamicShader verticalGradient(Array<Color> colors, FloatArray positions) Creates a DynamicShader in the form of a vertical gradient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.