from kandinsky import * from random import random T = 5 col, lig = 1 + 320 // T, 1 + 222 // T mx, my = col // 2, lig // 2 for l in range(lig): for c in range(col): d = (mx - c) ** 2 + (my - l) ** 2 if d < .6 * my * my: coul = (255, 0, 0) elif d < .8 * my * my: coul = (0,) * 3 else: coul = (0, 0, 255) if random() < .5: coul = (0,) * 3 fill_rect(c * T, l * T, T, T, coul)