2e indice…
from kandinsky import * import random def chapeau(x,y,c): fill_rect(x,y,34,5,(200,200,200)) fill_rect(x+4,y-10,27,10,c) fill_rect(x+9,y-15,20,15,c) fill_rect(x+13,y-18,15,18,c) fill_rect(x+19,y-21,8,21,c) fill_rect(x+21,y-25,5,5,(200,200,200)) for x in range(10): for y in range(10): if x%2==0 or y%2==1: chapeau(x*55+4,y*45+30,(255,0,0)) else: chapeau(x*55+4,y*45+30,(0,255,0))