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 daria

Created 2 years, 3 months ago.
Based on For Loop Example 2 by jamie.