from kandinsky import * from ion import * from time import * from random import * x=0 y=0 couleur=color(0,0,0) while True: set_pixel(x,y,couleur) if keydown(KEY_OK): sleep(.05) if keydown(KEY_EXE): couleur=color(randint(0,255),randint(0,255),randint(0,255)) if keydown(KEY_BACKSPACE): fill_rect(0,0,1000,1000,'white') if keydown(KEY_UP): y-=1 if keydown(KEY_DOWN): y+=1 if keydown(KEY_RIGHT): x+=1 if keydown(KEY_LEFT): x-=1