from kandinsky import * from time import * from random import * white=color(255,255,255) blue=color(51,51,102) rects = [ (0,0,128,90,(51,51,102)), (128,0,192,12,(153,51,51)), (128,26,192,12,(153,51,51)), (128,52,192,12,(153,51,51)), (128,78,192,12,(153,51,51)), (0,104,320,12,(153,51,51)), (0,130,320,12,(153,51,51)), (0,156,320,12,(153,51,51)), (22,182,5,20,(193,193,193)), (32,182,5,20,(193,193,193)), (59,182,5,20,(193,193,193)), (78,182,5,20,(193,193,193)), (134,182,5,20,(193,193,193)), (171,182,5,20,(193,193,193)), (207,182,5,20,(193,193,193)), (244,182,5,20,(193,193,193)), (27,190,5,4,(193,193,193)), (102,195,5,7,(193,193,193)), (99,191,10,4,(193,193,193)), (108,182,5,9,(193,193,193)), (96,182,5,9,(193,193,193)), (40,193,5,9,(193,193,193)), (51,193,5,9,(193,193,193)), (50,186,5,7,(193,193,193)), (70,185,5,7,(193,193,193)), (41,186,5,7,(193,193,193)), (45,182,6,4,(193,193,193)), (64,182,6,4,(193,193,193)), (64,192,6,4,(193,193,193)), (89,185,5,7,(193,193,193)), (83,182,6,4,(193,193,193)), (83,192,6,4,(193,193,193)), (45,193,6,4,(193,193,193)), (152,193,5,9,(193,193,193)), (163,193,5,9,(193,193,193)), (162,186,5,7,(193,193,193)), (153,186,5,7,(193,193,193)), (157,182,6,4,(193,193,193)), (157,193,6,4,(193,193,193)), (139,198,10,4,(193,193,193)), (189,182,5,20,(193,193,193)), (199,186,5,12,(193,193,193)), (194,198,10,4,(193,193,193)), (194,182,10,4,(193,193,193)), (263,193,5,9,(193,193,193)), (274,193,5,9,(193,193,193)), (273,186,5,7,(193,193,193)), (264,186,5,7,(193,193,193)), (268,182,6,4,(193,193,193)), (268,193,6,4,(193,193,193)), (287,195,5,7,(193,193,193)), (285,191,10,4,(193,193,193)), (293,182,5,9,(193,193,193)), (281,182,5,9,(193,193,193)), (182,185,5,4,(193,193,193)), (176,182,9,4,(193,193,193)), (176,190,6,4,(193,193,193)), (182,193,5,5,(193,193,193)), (176,198,9,4,(193,193,193)), (217,194,4,4,(193,193,193)), (221,198,4,4,(193,193,193)), (212,182,6,4,(193,193,193)), (212,190,6,4,(193,193,193)), (256,188,5,8,(193,193,193)), (254,186,4,2,(193,193,193)), (249,182,9,4,(193,193,193)), (254,194,4,5,(193,193,193)), (249,198,9,4,(193,193,193)), (218,184,5,7,(193,193,193)), ] etoiles=[ (7,7), (29,7), (51,7), (73,7), (95,7), (117,7), (7,25), (29,25), (51,25), (73,25), (95,25), (117,25), (7,43), (29,43), (51,43), (73,43), (95,43), (117,43), (7,61), (29,61), (51,61), (73,61), (95,61), (117,61), (7,79), (29,79), (51,79), (73,79), (95,79), (18,70), (40,70), (62,70), (84,70), (106,70), (18,52), (40,52), (62,52), (84,52), (106,52), (18,34), (40,34), (62,34), (84,34), (106,34), (18,16), (40,16), (62,16), (84,16), (106,16), (117,79)] for r in rects: fill_rect(*r) t=monotonic() while True: if monotonic()-t>.15: t=monotonic() blink=choice(etoiles) blink182=choice(etoiles) for i,e in enumerate(etoiles): fill_rect(e[0],e[1],3,3,white) fill_rect(blink[0],blink[1],3,3,blue) fill_rect(blink182[0],blink182[1],3,3,blue)