Skip to content

Instantly share code, notes, and snippets.

@akshitzaveri
Created May 2, 2020 12:15
Show Gist options
  • Save akshitzaveri/5a5ce3123427cb0788812d435065f3c5 to your computer and use it in GitHub Desktop.
Save akshitzaveri/5a5ce3123427cb0788812d435065f3c5 to your computer and use it in GitHub Desktop.
// 2
let initialPoint = self.getPoint(for: -90)
path.move(to: initialPoint)
// 3
for angle in -89...0 { path.addLine(to: self.getPoint(for: angle)) }
for angle in 1...270 { path.addLine(to: self.getPoint(for: angle)) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment