3 ms·
I use a combination of Path2D and ctx.isPointInPath() - code here[1], line 1502 onwards [1] https://github.com/KaliedaRik/Scrawl-canvas/blob/master/source/mixi
by rikroots 5y ago
I use a combination of Path2D and ctx.isPointInPath() - code here[1], line 1502 onwards
[1] https://github.com/KaliedaRik/Scrawl-canvas/blob/master/source/mixin/position.js https://github.com/KaliedaRik/Scrawl-canvas/blob/master/sour...