4 ms·
Still no way to properly turn off antialiasing? (All the ways you find via google don't actually work and you need to write your own drawing engine to do it pr
by whywhywhywhy 5y ago
Still no way to properly turn off antialiasing?
(All the ways you find via google don't actually work and you need to write your own drawing engine to do it properly)
- rikroots 5y agoHave you tried ctx.imageSmoothingEnabled (boolean) and ctx.imageSmoothingQuality (string: 'low' | 'medium' | 'high')? From my experiments the iSE value seems to be respected across modern browsers, but the iSQ appears to be ignored. There's also the ctx.smoothFont (boolean) value but I've not yet discovered a browser that cares about implementing it. Demo: https://scrawl-v8.rikweb.org.uk/demo/canvas-058.html https://scrawl-v8.rikweb.org.uk/demo/canvas-058.html
- whywhywhywhy 5y agoYou need that as well but it won’t make canvas draw lines and circles fully aliased. Have to completely reimplement those algorithms last time I tried.