Skip to content

Instantly share code, notes, and snippets.

@eliheuer
Created January 3, 2016 01:23
Show Gist options
  • Save eliheuer/25adba011139d8ebaaaf to your computer and use it in GitHub Desktop.
Save eliheuer/25adba011139d8ebaaaf to your computer and use it in GitHub Desktop.
Daily Python Kata
# Daily Python Kata
# 01/02/16 -- 002
canvas = 2**9
count = 1
frame_count = 50
for i in range(frame_count):
newPage(canvas, canvas)
frameDuration(1/20)
image("ss.png", (0, 0))
for i in range(frame_count):
fill(0.6)
stroke(1)
count = count + 1
translate(i * count/1024, 10)
rect(frame_count * 2, frame_count * 2, 100, 100)
if frame_count > 20:
saveImage("010216002.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment