Created
January 3, 2016 01:23
-
-
Save eliheuer/25adba011139d8ebaaaf to your computer and use it in GitHub Desktop.
Daily Python Kata
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
# 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