Serai-ce un teaser? Peut-être… Dessine un joli pokédex automatiquement
from kandinsky import * def draw_pokedex(): x=34 y=2 #dark parts fill_rect(x+27,y+127,9*23,9,(0,0,0)) fill_rect(x+9,y+135,26*9,9,(0,0,0)) fill_rect(x,144+y,28*9,5*9,(0,0,0)) fill_rect(x+9,y+144+5*9,26*9,9,(0,0,0)) fill_rect(x+18,y+144+6*9,24*9,9,(0,0,0)) fill_rect(x+15*9,y+144+7*9,10*9,9,(0,0,0)) fill_rect(x+36,y+127-3*9,20*9,12*9,(0,0,0)) fill_rect(x+27,y,21*9,12*9,(0,0,0)) #red parts fill_rect(x+36,y+9,19*9,10*9,(255,0,0)) fill_rect(x+45,y+136-3*9,16*9,9*9,(255,0,0)) fill_rect(x+45,y+136-3*9+9*9,10*9,9,(255,0,0)) #screen borders fill_rect(x+54,y+18,11*9,8*9,(0,0,0)) fill_rect(x+54,y+136-2*9,14*9,7*9,(0,0,0)) #screen borders and micro fill_rect(x+63,y+27,9*9,6*9,(255,255,255)) fill_rect(x+63,y+136-1*9,12*9,5*9,(255,255,255)) fill_rect(x+63+12*9,y+36,9,9,(0,0,0)) fill_rect(x+72+12*9,y+45,9,9,(0,0,0)) fill_rect(x+63+12*9,y+54,9,9,(0,0,0)) fill_rect(x+72+12*9,y+45,9,9,(0,0,0)) fill_rect(x+72+12*9,y+63,9,9,(0,0,0)) fill_rect(x+81+12*9,y+54,9,9,(0,0,0)) fill_rect(x+81+12*9,y+36,9,9,(0,0,0)) #hell grey parts fill_rect(x+9,y+9*17,9,4*9,(48,48,48)) fill_rect(x+18,y+9*16,18,54,(48,48,48)) #dunkel grey parts fill_rect(x+22*9,y+15*9,4*9,7*9,(64,64,64)) fill_rect(x+26*9,y+17*9,9,4*9,(64,64,64)) fill_rect(x+16*9,y+22*9,8*9,9,(64,64,64)) #joysyick finally :) fill_rect(x+23*9,y+18*9,19,18,(0,255,0)) draw_pokedex()