Notes:
TNTArc is a portion of a circle. You must supply a center, a radius and a beginning and ending angle (in degrees) to get what you want. Positve angles are counter-clockwise as you learned (hopefully) in math class. This object allows you to use the function 'showCenter' which locates the arc's center. It's helpful to show this initially to position the arc where you want it.
It's worth experimenting with this TNTArc using Chrome's Developer Tools. The help section explains how to do this.
Features and Usage:
| Primary Attributes: |
5 parameters: Positive angles are counter-clockwise |
|---|---|
| To Create: (Example Above) |
//designer colors |
| To Draw: |
myArc.drawTNTArc(context); |
| Comments: |
Notice there is no 'fillColor' property for these puppies, but you can thicken the arc with the lineWidth property of the TNTStroke. |
| Even More: |
Notice how we grabbed the center points x and y properties using the 'dot operator' (center.x, center.y) when we worked some SohCahToa magic to get the arc's beginning and ending points. |
