Created
May 16, 2017 22:09
-
-
Save hex13/f8a1304699deff4457afd9e669aa5609 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
def emit_point(): | |
print "x", x, "y", y | |
while width > 0 and height > 0: | |
direction = 1 | |
while direction >= -1: | |
for i in range(width - 1): | |
emit_point() | |
x += direction | |
for i in range(height - 1): | |
emit_point() | |
y += direction | |
direction -= 2 | |
x += 1 | |
y += 1 | |
width -= 2 | |
height -= 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment