Rectangle(color="pink")
circle = Circle(width=5, height=5, color="white")

# Set up THREE lists!
grow = [10, 40, 60]
colors = ["red", "white", "blue"]
loopList = range(3)

# Animation
for i in loopList:
    with animation(duration=2):
        circle.width = grow[i]
        circle.height = grow[i]
        circle.color = colors[i]

For Loop Example 3

by lapura

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