Skip to content

Instantly share code, notes, and snippets.

@rockarts
Created October 5, 2018 04:16
Show Gist options
  • Save rockarts/38e1af7b8f0e227782da213a75bf6733 to your computer and use it in GitHub Desktop.
Save rockarts/38e1af7b8f0e227782da213a75bf6733 to your computer and use it in GitHub Desktop.
for xvalue in stride(from: x, through: width, by: step) {
for yvalue in stride(from: y, through: height, by: step) {
drawLine(x: xvalue,y: yvalue, width: step, height: step)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment