RoundRect adds a couple more parameters, and draws a rectangle with rounded corners . Each parameter has the following function. The example for RoundRect is very similar, we need to add two more parameters to determine the curvature at the corners. Arcs This group includes the Arc and Pie methods. They take exactly the same parameters, but the graphics produced are slightly different to each other.
Arc produces a curve from an oval.
Pie produces the same curve from an oval, but joins the two ends with the center of the oval . Each parameter has the following function. The rotation of the rectangle Most of the parameters have obvious consequences, but the angle parameters need further explanation. If startAngle is 0, then this means we are along the positive x-axis, which is to the right. To see this, run the following example.