Created
July 1, 2020 19:14
-
-
Save mattrobmattrob/23866985634b5c9ac6d30034bd300df8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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