from icons import Heart
Rectangle(color="lightblue")  
Heart1 = Heart(width=100, height=100, color='violet')
Heart2 = Heart(width=90, height=90, color='blue')
Heart3 = Heart(width=80, height=80, color='lime')
Heart4 = Heart(width=70, height=70, color='yellow')
Heart5 = Heart(width=60, height=60, color='Orange')
Heart6 = Heart(width=50, height=50, color='red')
colors1 = ["red", "orange", "yellow", "lime", "blue"]
colors2 = ["violet", "red", "orange", "yellow", "lime"]
colors3 = ["blue", "violet", "red", "orange", "yellow"]
colors4 = ["lime", "blue", "violet", "red", "orange"]
colors5 = ["yellow", "lime", "blue", "violet", "red"]
colors6 = ["orange", "yellow", "lime", "blue", "violet"]
with animation(duration = 10):
    Heart1.color = colors1
    Heart2.color = colors2
    Heart3.color = colors3
    Heart4.color = colors4
    Heart5.color = colors5
    Heart6.color = colors6

Color Changing Heart

by rishee

Created 4 years, 11 months ago.