InterfaceGradientOptions

The colors of a gradient, see Image.linearGradient

interface GradientOptions {
    stops: number[] | Record<number, number>;
}

Hierarchy (View Summary)

Properties

Properties

stops: number[] | Record<number, number>

The colors along the gradient: their positions (0..1) and colors, like Colors.gradient takes them ({ 0: 0xff0000ff, 0.5: 0xffff00ff, 1: 0x00ff00ff }), or just the colors, evenly spaced ([0xff0000ff, 0x00ff00ff])