javascript - HTML5 canvas curve anti-aliasing worse than SVG -


i started study canvas, drawing circle , found anti-aliasing curve worse circle in svg.

my code this:

context.arc(0, 0, radius, 0.5 * math.pi, 0.5 * math.pi - radian, true); 

i reversed y-axis make natural me. have scale canvas make adapt retina display.

the result on mac picture here.

my complete code here.

update: code doing animation of completing circle.

i noticed if fps set 1-3, anti-aliasing applying. strange.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -