Sur une idée de Jean-Yves Labouche
from kandinsky import fill_rect from random import randint def table(n): for c in range(1, 159): for l in range(1, 110): r = 5 * ((c * l) ** 2 % n) fill_rect(2 * c, 2 * l, 2, 2, (255, r, r)) table(randint(30,200))
Create, edit, and import your Python scripts
Sur une idée de Jean-Yves Labouche
from kandinsky import fill_rect from random import randint def table(n): for c in range(1, 159): for l in range(1, 110): r = 5 * ((c * l) ** 2 % n) fill_rect(2 * c, 2 * l, 2, 2, (255, r, r)) table(randint(30,200))