import icons
import math

Square(color=['darkred', 'firebrick', 'brown', 'crimson', 'red', 'orangered'])
#for i in range(1, 200, 1):
#    x = i/2
#    y = 50 + (math.sin(x/15)*30)
#    Circle(x=x, y=y, width=1, height=1)

hearts = []

for i in range(36):
    hearts.append(icons.Heart(color='mediumspringgreen', width=5, height=5))

vinkel = 0
for i in range (1,100):
    for heart in hearts:
        vinkel = vinkel + 10
        radian = (vinkel+(i*0.5)) / 57.2958
        x = 50 + (40 * math.cos(radian))
        y = 50 + (40 * math.sin(radian))
        heart.x = x
        heart.y = y
        
    with animation(duration=0.051):
        pass

no. 2

by NoorsDad

Created 6 years ago.