konfeti - v0.6.0
    Preparing search index...

    Type Alias ShadowOptions

    Drop Shadow.

    paper: { shadow: { color: "rgba(0,0,0,0.3)", blur: 4, offsetY: 2 } }
    

    Expensive: the browser blurs every shadowed particle again on every frame, and a larger blur costs more (measured in Chrome: about 30 particles with blur: 14 dropped the frame rate to about 40 fps). For glowing particles prefer blendMode: "lighter" or an image shape with the glow drawn in, like the FIREFLIES preset. adaptiveQuality turns shadows off on slow devices. Trails are drawn without the shadow.

    type ShadowOptions = {
        blur?: Pixels;
        color?: ColorInput;
        offsetX?: Pixels;
        offsetY?: Pixels;
    }
    Index
    blur?: Pixels

    Blur Radius.

    4

    color?: ColorInput

    Shadow Color.

    "rgba(0,0,0,0.25)"

    offsetX?: Pixels

    Horizontal Offset.

    0

    offsetY?: Pixels

    Vertical Offset.

    2