from math import * from random import * from time import * from kandinsky import * from ion import * from kandinsky import fill_rect as fill from ion import keydown as getkey rect_x=60 rect_y=200 rect_width=40 rect_height=100 rect_color="black" p_x = randint(rect_x,rect_x+rect_width) p_y = randint(rect_y,rect_y+rect_height) p_width = 5 p_height = 5 p_color = (randint(0,255),randint(0,255),randint(0,255)) fill(0,0,322,222,"cyan") while 1: sleep(0.02) rect_x-=1 fill(rect_x+rect_width,rect_y+rect_height,rect_width,rect_height,"black") fill(rect_x,rect_height,rect_width,rect_height,"black") if rect_x < 0-rect_width: rect_x=322 rect_y=90