News for hackers. Stuff that matters.
Re:CSS Gradients that avoid the “gray dead zone” by aloer on Wednesday January 12, 2022 @12:44AM (#29902779)
How did you implement hit testing for events? Does it draw on a second canvas with color hashing like konva js?
Re:CSS Gradients that avoid the “gray dead zone” by rikroots on Wednesday January 12, 2022 @03:37AM (#29903845)
I use a combination of Path2D and ctx.isPointInPath() - code here[1], line 1502 onwards

[1] https://github.com/KaliedaRik/Scrawl-canvas/blob/master/sour...