Apply filters to an image source and return the result as ImageData.
Accepts ImageData, HTMLImageElement, HTMLCanvasElement, or ImageBitmap.
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.
Load an image from a URL and apply filters.
Returns a Promise that resolves to the filtered ImageData.
Apply filters and draw the result into an existing canvas.
Load URL inputs if needed, apply filters, and draw into an existing canvas.
Stop all loops and release all GPU resources.
Stop all video animation loops. Keeps compiled state for reuse.
Compiled filter chain. Caches shader programs for efficient reuse across multiple frames or images.
Created by calling
.compile()on aGLFiltersinstance.