I’m trying to animate a circle being drawn – here’s a simplified version of what I’m doing:
Problem is: I get slight lines / distortion between each line segment. Like this:

The constraints I’m dealing with are:
- I need to render more than one circle on the same canvas, sometimes circles overlap
- I need to render the circles using transparency / rgba coloring
- I need to animate the rendering of the circles (so they look like they are being drawn)
Is this a common issue? How do you handle this kind of thing?
One easy way to fix this is to always be drawing one path, that way you guarantee that they will be connected well.
So instead of arcing from A to B and then B to C and then C to D, you arc from A to B, clear the canvas, arc from A to C, clear the canvas, arc from A to D, etc.
Here’s a modified code bit as an example:
http://jsfiddle.net/ZV7rv/
Edit: In response to the comment, this is how to achieve the same thing while using a canvas buffer to keep the same state that was the canvas previously:
http://jsfiddle.net/7vVBC/