Right now, there are two ways to provide filters: one for "simple" CSS filters (example: offscreenCanvas.filter = 'brightness(1)') and one for more complex SVG filters (example: offscreenCanvas.filter = new CanvasFilter([…])). Ideally, simple CSS filters could be modeled as {filter: 'brightness', amount: 1} as well, so they can all be passed in one big filter array.
Right now, there are two ways to provide filters: one for "simple" CSS filters (example:
offscreenCanvas.filter = 'brightness(1)') and one for more complex SVG filters (example:offscreenCanvas.filter = new CanvasFilter([…])). Ideally, simple CSS filters could be modeled as{filter: 'brightness', amount: 1}as well, so they can all be passed in one big filter array.