from @levelsio | by @levelsio

@levelsio

@levelsio

about 2 years ago

ā€¢View on Twitter

Any good blur function in JS for ? I need to blur my mask to avoid edge lines when brushing. But ctx.filter='blur(5px)'; doesn't do anything in Chrome at least?

Okay I'm stupid you can just use ctx.filter but ofc it only is ENABLED from then you have to then draw the canvas contents itself AGAIN on itself so it's blurred

Hmm maybe not, I do this but it doesn't do anything rly