from icons import Heart
Rectangle(color='lavenderblush')
heart = Heart(width=60, height=60, color='violet')
colors = ['cornflowerblue', 'royalblue', 'rebeccapurple']
strings = ["Happy", "birthday", "my dearest!"]
y_positions = [30, 50, 70]
loopList = range(len(strings))  # Explore exactly what is happening here!
for c in colors:
    with animation(duration=1):
        heart.color = c
for i in loopList:
    with animation(duration=1):
        Text(strings[i], x=50, y=y_positions[i])

heart_one_two_three

by daria

Created 2 years, 3 months ago.