Skip to content

Instantly share code, notes, and snippets.

@stenson
Created May 2, 2019 19:45
Show Gist options
  • Save stenson/322423664840a15710dde004d9ee9118 to your computer and use it in GitHub Desktop.
Save stenson/322423664840a15710dde004d9ee9118 to your computer and use it in GitHub Desktop.
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