Gradient
class Gradient(val colors: Gradient.Colors, val interpolation: Gradient.Interpolation = Interpolation())
Specification for the colors in a gradient.
Types
Link copied to clipboard
class Colors(val colors: Array<Color4f>, val positions: FloatArray? = null, val tileMode: FilterTileMode, val colorSpace: ColorSpace? = null)
Specification for the colors in a gradient.
Link copied to clipboard
class Interpolation(val inPremul: Gradient.Interpolation.InPremul = InPremul.NO, val colorSpace: Gradient.Interpolation.ColorSpace = ColorSpace.DESTINATION, val hueMethod: Gradient.Interpolation.HueMethod = HueMethod.SHORTER)
Description of the colors and interpolation method.