from kandinsky import * from time import monotonic, sleep from math import * start = monotonic() while True: t = monotonic() - start fill_rect(0,0,320,222,(0,)*3) for i in range(9): rgb = abs(int(255*(sin(t)*cos(t))*sin(i*cos(t)))) fill_rect(int(50 + 25 * i + 70 * sin(t)), int(100 + 6 *sin(t*i)*t*cos(i)), int(20*sin(t)), 70, (rgb,)*3) sleep(.02)