num = 10
black = []
white = []

black_bg = Square(height=0)

for i in range(0, num // 2):
	for j in range(0, num):
    	black.append(Square(x=i*(200//num)+(50//num)+(j%2)*(100//num), y=j*(100//num)+(50//num), width=(100//num), height=(100//num)))

for i in range(0, num // 2):
	for j in range(0, num):
    	white.append(Square(x=i*(200//num)+(150//num)-(j%2)*(100//num), y=j*(100//num)+(50//num), width=(100//num), height=0, color='white'))

with animation(duration=2):
    for sq in black:
        sq.rotation = 90  
for sq in white:
    sq.height=(100//num)
black_bg.height = 100
with animation(duration=2):
    for sq in white:
        sq.rotation = 90

Spinny checkers

by alex

Created 3 months, 3 weeks ago.