canvas2d
last updated: Oct 20, 2023
Interesting article on new features for canvas:
https://developer.chrome.com/blog/canvas2d/
especially interesting are ctx.reset()
and filters:
ctx.filter = new CanvasFilter([
{filter: "gaussianBlur", stdDeviation: 5},
{filter: "convolveMatrix",
kernelMatrix: [
[-3, 0, 0],
[0, 0.5, 0],
[0, 0, 3]]
},
{filter: "colorMatrix", type: "hueRotate", values: 90},
]);