3 ms·
Have you tried ctx.imageSmoothingEnabled (boolean) and ctx.imageSmoothingQuality (string: 'low' | 'medium' | 'high')? From my experiments the iSE value seems to
by rikroots 5y ago
Have 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.