Created
May 2, 2019 19:45
-
-
Save stenson/322423664840a15710dde004d9ee9118 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
from furniture.animation import Animation | |
def draw_1(frame): | |
fill(0, 0.5, 1) | |
rect(*frame.page) | |
def draw_2(frame): | |
fill(1, 0, 0.5) | |
rect(*frame.page) | |
def draw(frame): | |
if frame.i < 30: | |
draw_1(frame) | |
else: | |
draw_2(frame) | |
animation = Animation(draw, 60) | |
animation.storyboard(1, 30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment