Pour Instagram
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)), (30,181,19,4,(198,198,198)), (63,192,11,4,(198,198,198)), (94,196,11,4,(198,198,198)), (94,181,11,4,(198,198,198)), (125,185,4,4,(198,198,198)), (129,189,4,4,(198,198,198)), (160,189,4,4,(198,198,198)), (164,185,4,4,(198,198,198)), (168,181,4,4,(198,198,198)), (167,204,4,4,(198,198,198)), (133,193,4,4,(198,198,198)), (156,193,7,4,(198,198,198)), (161,198,7,4,(198,198,198)), (38,185,4,23,(198,198,198)), (59,181,4,27,(198,198,198)), (74,181,4,27,(198,198,198)), (90,185,4,23,(198,198,198)), (105,185,4,23,(198,198,198)), (121,181,4,27,(198,198,198)), (137,181,4,27,(198,198,198)), (152,181,4,27,(198,198,198)), (221,196,4,12,(198,198,198)), (225,192,4,4,(198,198,198)), (247,181,11,4,(198,198,198)), (247,204,11,4,(198,198,198)), (275,204,11,4,(198,198,198)), (217,192,4,4,(198,198,198)), (213,181,4,11,(198,198,198)), (229,181,4,11,(198,198,198)), (243,185,4,19,(198,198,198)), (258,185,4,19,(198,198,198)), (271,181,4,23,(198,198,198)), (286,181,4,23,(198,198,198))] 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)