from kandinsky import * from time import sleep m0 = 0,36 m1 = 7,11,22,25,36,40,53,58 m2 = 0,4,18,22,32,36,50,54 m3 = 3,7,10,14,17,21,24,28,35,39,42,46,49,53,56,60 m4 = 0,4,5,7,12,13,16,17,24,25,27,28,35,36,38,39,46,47,50,51,56,58,59,63 m5 = 0,4,9,15,18,22,27,29,31,32,36,41,45,47,50,54,57,59,61 m6 = 0,18,22,36,50,54 m7 = 0,1,10,15,19,22,28,29,36,43,50,57 m8 = 0,2,3,4,6,7,8,9,13,16,17,21,22,23,24,25,29,30,31,32,34,35,36,38,39,41,44,45,49,50,51,52,53,57,58,59,60,61 m9 = 0,7,9,14,18,21,27,28,32,39,41,46,50,53,59,60 m10 = 0,1,2,3,4,5,6,7,12,20,28,32,33,34,35,36,37,38,39,40,48,56 m11 = 4,5,14,23,31,38,39,40,45,49,52,58,59 def fond(motif): for c in range(0, 320, 8): for l in range(0, 222, 8): for i in motif: set_pixel(c + (i % 8), l + (i // 8), (0, 0, 0)) for i in range(12): fill_rect(0, 0, 320, 222, (255,) * 3) fond(eval('m' + str(i))) sleep(.2)