diff options
author | Orangerot <purple@orangerot.dev> | 2024-12-12 02:19:05 +0100 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-12-12 02:19:05 +0100 |
commit | f9b4d17140c708a1d853dff0555d0ccaf7c172fd (patch) | |
tree | 7edae873b47e08675bc4030ff8b9a921e05dfdfc /main.js | |
parent | fc98bdd1830acd863d4f0ea0c14202d45773c35c (diff) |
feat: more canvas css filters
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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(); |