I know how to draw a partial circle (arc) on HTML5 canvas, but how to draw a stretched arc on canvas?
How to draw an arc similar to the one below (where the arc is drawn / radius is changed)?

This is how I draw a normal arc, maybe this is a function that can stretch this arc?
context.moveTo(centerX, centerY);
context.arc(centerX, centerY, radius, startingAngle, endingAngle, false);
context.closePath();
source
share