Skip to content

Instantly share code, notes, and snippets.

@hex13
Created May 16, 2017 22:09
Show Gist options
  • Save hex13/f8a1304699deff4457afd9e669aa5609 to your computer and use it in GitHub Desktop.
Save hex13/f8a1304699deff4457afd9e669aa5609 to your computer and use it in GitHub Desktop.
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