konfeti - v0.6.0
    Preparing search index...

    Type Alias CustomShapeParticle

    Particle View Passed to a Custom draw() Function. The context is already translated, rotated, flipped, skewed, scaled and faded; draw centered at 0, 0 inside a width × height box. The object is reused between calls — read it, don't keep it.

    type CustomShapeParticle = {
        facing: number;
        fill: string | CanvasGradient;
        height: number;
        progress: number;
        stroke: string | null;
        strokeWidth: number;
        width: number;
    }
    Index
    facing: number

    Facing (> 0 front side, < 0 back side while flipping).

    fill: string | CanvasGradient

    Fill Style for the Current Side and Age (color, gradient or back color).

    height: number

    Box Height in Local Pixels.

    progress: number

    Life Progress (0 = just spawned, 1 = about to die).

    stroke: string | null

    Stroke Color (null when stroke is off).

    strokeWidth: number

    Stroke Width in Local Pixels.

    width: number

    Box Width in Local Pixels.