Package icyllis.modernui.graphics

# Class GradientShader

java.lang.Object
icyllis.modernui.graphics.Shader
icyllis.modernui.graphics.GradientShader

Direct Known Subclasses:
  `AngularGradient`, `LinearGradient`, `RadialGradient`

public abstract class GradientShader extends Shader
Base class for shaders that generate multiple gradient colors.

Since:
  3.11

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `GradientShader.Builder`
  `static enum`
  `GradientShader.HueInterpolationMethod`
  Hue interpolation method.
  `static enum`
  `GradientShader.InterpolationColorSpace`
  Interpolation color space.

  ## Nested classes/interfaces inherited from class icyllis.modernui.graphics.Shader

  `Shader.TileMode`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GradientShader()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected static float[]`
  `convertColors(int[] colors)`

  ### Methods inherited from class icyllis.modernui.graphics.Shader

  `release`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GradientShader

    public GradientShader()

- ## Method Details

  - ### convertColors

    @Internal protected static float[] convertColors(@NonNull @ColorInt int[] colors)