Gradient

class Gradient(val colors: Gradient.Colors, val interpolation: Gradient.Interpolation = Interpolation())

Specification for the colors in a gradient.

Constructors

Link copied to clipboard
constructor(colors: Gradient.Colors, interpolation: Gradient.Interpolation = Interpolation())

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.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int