from ppn import * from math import * def hline(x,y1,y2,Color): if(y1 0: hline(i%ppn_w,l[i],l[i-1],ppn_has_color and W or B) hline((i-5)%ppn_w,l[i-5],l[i-6],ppn_has_color and G or B) hline((i-(ppn_w-29))%ppn_w,l[i-(ppn_w-29)],l[i-(ppn_w-28)],ppn_has_color and DG or B) hline((i-(ppn_w-24))%ppn_w,l[i-(ppn_w-24)],l[i-(ppn_w-23)],ppn_has_color and B or W) show_screen() i = (i + 1) % ppn_w imax -= 1