pixi.js
    Preparing search index...

    Class CanvasFilterSystemAdvanced

    Canvas2D filter system that applies compatible filters using CSS filter strings. Unsupported filters are skipped with a warn-once message.

    Implements

    Index

    Constructors

    • Parameters

      • renderer: {
            canvasContext: {
                activeContext: ICanvasRenderingContext2D;
                activeResolution: number;
            };
        }

        The Canvas renderer

      Returns CanvasFilterSystem

    Properties

    renderer: {
        canvasContext: {
            activeContext: ICanvasRenderingContext2D;
            activeResolution: number;
        };
    }

    The renderer this system is attached to

    Accessors

    • get alphaMultiplier(): number

      Returns number

    Methods

    • Destroys the system

      Returns void

    • Applies supported filters to a texture and returns a new texture. Unsupported filters are skipped with a warn-once message.

      Parameters

      • params: { filters: Filter[]; texture: Texture }

        The parameters for applying filters.

      Returns Texture

      The resulting texture after filters are applied.

    • Pop a filter from the stack. Called when exiting a filtered container.

      Returns void

    • Push a filter instruction onto the stack. Called when entering a filtered container.

      Parameters

      • instruction: FilterInstruction

        The filter instruction from FilterPipe

      Returns void