JetForMe

Untitled

Jul 26th, 2015
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.37 KB | None | 0 0
  1. import CoreGraphics
  2. import UIKit
  3.  
  4. let ctx = UIGraphicsGetCurrentContext()
  5.  
  6. func
  7. addArc(inCenter : CGPoint, _ inRadius : CGFloat, _ inStartAngle : CGFloat, _ inEndAngle : CGFloat, _ inClockwise : Bool = false)
  8. {
  9.     CGContextAddArc(ctx, inCenter.x, inCenter.y, inRadius, inStartAngle, inEndAngle, inClockwise ? 1 : 0)
  10. }
  11.  
  12.  
  13. addArc(CGPoint(x: 0, y: 0), 50.0, 0.0, M_PI)
Advertisement
Add Comment
Please, Sign In to add comment