core graphics - Creating an Arc Path in Objective-C -
i trying create arc path in xcode , code.
cgpathaddarc(thepath,null,100,200,300,200,100,yes);
this code works creates weird arc. wondering each number in code represents. trying create arc in form of half circle. suggestions?
according apple documentation (which easy going http://developer.apple.com/ios ), first parameter path ref building. transform next (you've passed null).
then, numbers, cgfloats:
- x x-coordinate of center point of arc.
- y y-coordinate of center point of arc.
- r radius of arc.
- startangle angle (in radians) determines starting point of arc, measured x-axis in current user space.
- endangle angle (in radians) determines ending point of arc, measured x-axis in current user space.
and ending "clockwise" bool.
Comments
Post a Comment