glFilters - v0.8.1
    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 source and return the result as ImageData. Accepts ImageData, HTMLImageElement, HTMLCanvasElement, or ImageBitmap.

      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

    • Load an image from a URL and apply filters. Returns a Promise that resolves to the filtered ImageData.

      Parameters

      • source: string

      Returns Promise<ImageData>

    • Stop all loops and release all GPU resources.

      Returns void

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

      Returns void