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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -