from icons import Heart
heart = Heart(width=60, height=60, color='violet')
colors = ['red', 'orange']
for c in colors:
    with animation(duration=2):
        heart.color = c

For Loop Example 2

by jamie

Created 6 years, 3 months ago.