From f9b4d17140c708a1d853dff0555d0ccaf7c172fd Mon Sep 17 00:00:00 2001 From: Orangerot Date: Thu, 12 Dec 2024 02:19:05 +0100 Subject: feat: more canvas css filters --- main.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index 397cfa9..81e9f87 100644 --- a/main.js +++ b/main.js @@ -2,10 +2,14 @@ let canvas; let video; let ctx; let settings = { - brightness: {}, - saturate: {}, - contrast: {}, - blur: { filter: value => value * canvas.width / 100 + 'px' } + "brightness": {}, + "saturate": {}, + "contrast": {}, + "hue-rotate": {filter: value => value + "deg"}, + "grayscale": {}, + "sepia": {}, + "invert": {}, + "blur": { filter: value => value * canvas.width / 100 + 'px' } }; const img = new Image(); -- cgit v1.2.3