glFilters - v0.6.0
    Preparing search index...

    Class CompiledFilter

    Compiled filter chain. Caches shader programs for efficient reuse across multiple frames or images.

    Created by calling .compile() on a GLFilters instance.

    Index

    Methods

    • Apply filters to an image and return the result as ImageData.

      Parameters

      Returns ImageData

    • Apply filters to a video element and return a canvas that updates each frame. Call .stop() to pause the animation loop, .dispose() to clean up.

      Parameters

      • source: HTMLVideoElement

      Returns HTMLCanvasElement

    • Stop all loops and release all GPU resources.

      Returns void

    • Stop all video animation loops. Keeps compiled state for reuse.

      Returns void