Dynamically Drawn Circle and Pie Shape
Here a slider is used to dynamically draw two circles, one empty and the other filled (which basically gives you a pie chart). Each circle is drawn using a series of curveTo statements; enough needed to produce the segment of the circle being drawn.
advertisement