from kandinsky import * from time import monotonic, sleep from math import * start = monotonic() while True: t = monotonic() - start d = int(100 * t) for v in range(16): c = 15 * (16 - v) if d & (2**v) else 255 fill_rect(20 * v, 2, 15, 218, (c,) * 3)