konfeti - v0.6.0
    Preparing search index...

    Type Alias GradientOptions

    Linear Gradient Fill. Replaces the flat front color. The gradient is laid across the particle's own box, so it rotates, flips and scales with the particle. The back side (when flipped) still uses backColor.

    paper: { gradient: { colors: ["#ffd700", "#ff8c00"], angle: 45 } }
    

    Creates one CanvasGradient per particle at spawn time (no per-frame cost).

    type GradientOptions = {
        angle?: Degrees;
        colors: readonly [ColorInput, ColorInput, ...ColorInput[]];
    }
    Index
    angle?: Degrees

    Gradient Direction. 0 runs left → right, 90 bottom → top.

    90

    colors: readonly [ColorInput, ColorInput, ...ColorInput[]]

    Gradient Color Stops. At least two colors, spread evenly from start to end.