Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattrobmattrob/23866985634b5c9ac6d30034bd300df8 to your computer and use it in GitHub Desktop.
Save mattrobmattrob/23866985634b5c9ac6d30034bd300df8 to your computer and use it in GitHub Desktop.
// Now that we've shifted the canvas around, (0,0) from left to right now
// goes from bottom-left to top-right of the original rectangle. Stroke
// the middle stripe first since it has no mirror.
context.move(to: CGPoint(x: 0, y: 0))
context.addLine(to: CGPoint(x: maxPathLength, y: 0))
context.strokePath()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment