Autres exemples de tracés binaires ici
from kandinsky import * from math import * from time import sleep def f0(x,y): return sin(x * x / (y + 1) * 2) >= sin( y / (x + 1) * 10) def f1(x,y): return tan(x * y / 12) > sin(y / 8) def f2(x,y): return cos(x / (y + 1) * 10) > sin( y / 5) def f3(x,y): return sqrt(x) % 1 >= sqrt(y) % 1 def f4(x,y): return sin(x / 8) % 1 > sin(y / 8) % 1 i = 0 while True: fill_rect(0, 0, 320, 222, (255,) * 3) for y in range(222): for x in range(320): if eval('f' + str(i))(x,y): set_pixel(x, 221 - y, (0,) * 3) i = (i + 1) % 5 sleep(1)