from kandinsky import * COUL=((240,210,7),(230,130,5),(190,90,14),(110,60,30),(115,80,45)) nb = 5 ; R = 112 // nb ; co = nb * 2 ** .5 fill_rect(0,0,320,224,COUL[-1]) def disque(xc,yc,R,coul): for i in range(-R,R): for j in range(-R,R): if i**2+j**2<R*R:set_pixel(xc+i,yc+j,coul) for i in range(nb): for j in range(int(nb * 320 / 224)): for k in range(len(COUL)): disque(int(R * (1 + 2 * j + k/co*(-1)**j)), \ int(R * (1 + 2 * i + k/co*(-1)**i)), \ int(R * (nb - k)/nb), COUL[k])