konfeti - v0.6.0
    Preparing search index...

    Type Alias ParticleState

    Read-Only Particle Snapshot Passed to Hooks. Positions are CSS pixels relative to the canvas, angles radians, times milliseconds.

    type ParticleState = {
        age: number;
        frontColor: string;
        height: number;
        lifetime: number;
        rotation: number;
        vx: number;
        vy: number;
        width: number;
        x: number;
        y: number;
    }
    Index
    age: number

    Current Age.

    frontColor: string

    Front Color (CSS string).

    height: number

    Current Height.

    lifetime: number

    Total Lifetime.

    rotation: number

    2D Rotation in Radians.

    vx: number

    Horizontal Velocity (px/s).

    vy: number

    Vertical Velocity (px/s).

    width: number

    Current Width.

    x: number

    Horizontal Position.

    y: number

    Vertical Position.