Are you sure?
Do you want to delete “Spinny checkers” permanently? You will not be able to undo this action.
num = 10 black = [] white = [] black_bg = Square(height=0, color='cyan') 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