melonJS
    Preparing search index...

    Class BlurEffect

    A shader effect that applies a box blur to the sprite. Commonly used for background defocus, depth-of-field simulation, or UI backdrop blur.

    Renderable.shader for usage

    // moderate blur
    mySprite.shader = new BlurEffect(renderer, { strength: 2.0 });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean = false

    whether this effect is active (false in Canvas mode)

    strength: number

    Methods