Square(width=100, height=100, x=50, y=50, color='blue')
Square(width=102, height=60, x=49, y=80, color='yellow')
Circle(width=10, height=10, x=7, y=60, color='pink')
body = Ellipse(width=20, height=10, x=50, y=90, color='red')
Circle(width=10, height=10, x=80, y=65, color='white')
Circle(width=10, height=10, x=40, y=70, color='purple')
eye1 = Circle(width=5, height=5, x=45, y=86, color='black')
pupil1 = Circle(width=2, height=3, x=45, y=86, color='white')    
eye2 = Circle(width=5, height=5, x=55, y=86, color='black')
pupil2 = Circle(width=2, height=3, x=55, y=86, color='white')

leg1 = Rectangle(width=2, height=10, x=60, y=95, color='red', rotation=-45)
leg2 = Rectangle(width=2, height=10, x=57, y=97, color='red', rotation=-45)
leg3 = Rectangle(width=2, height=10, x=45, y=97, color='red', rotation=45)
leg4 = Rectangle(width=2, height=10, x=42, y=95, color='red', rotation=45)

with animation(duration=10):
    pupil1.x += 60
    pupil2.x += 60
    eye1.x += 60
    eye2.x += 60
    body.x += 60
    leg1.x +=42.43
    leg2.x +=42.43
    leg3.x +=42.43
    leg4.x +=42.43
    leg1.y +=42.43
    leg2.y +=42.43
    leg3.y -=42.43
    leg4.y -=42.43

    
with animation(duration=10):
    pupil1.x -= 60
    pupil2.x -= 60
    eye1.x -= 60
    eye2.x -= 60
    body.x -= 60
    leg1.x -=42.43
    leg2.x -=42.43
    leg3.x -=42.43
    leg4.x -=42.43
    leg1.y -=42.43
    leg2.y -=42.43
    leg3.y +=42.43
    leg4.y +=42.43

Seaside beach

by lucykjoyner

Created 1 year, 5 months ago.