my_circle = Circle(color='tan')
rec = Circle(width=20, height=20, x=10, color='white')
rec2 = Circle(width=20, height=20, x=40, color='white')
eyes = Circle(width=5, height=5, x=10, color='black')
eyes2 = Circle(width=5, height=5, x=40, color='black')

with animation(duration=2):
    rec.x = 90
    rec.color = 'white'
    rec2.x = 50
    rec2.color = 'white'
    eyes.x = 90
    eyes.color = 'black'
    eyes2.x = 50
    eyes2.color = 'black'
    
with animation(duration=0.5):
    pass
    
with animation(duration=1):
    rec.x = 30
    rec.color = 'white'
    rec2.x = 30
    rec2.color = 'white'
    eyes.x = 30
    eyes.color = 'black'
    eyes2.x = 30
    eyes2.color = 'black'

Bouncing eyes

by marcosjj

Created 3 years, 4 months ago.