void Kropka(Graphics kt,int x,int y) { if(x>=0&&x=p.x)sx=1;else sx=-1; if(k.y>=p.y)sy=1;else sy=-1; x=p.x; y=p.y; if (dx>=dy) { d=2*dy-dx; d1=2*dy; d2=2*(dy-dx); Kropka(kt,x,y); while (x!=k.x) { if(d<0){d+=d1;x+=sx;}else{x+=sx;y+=sy;d+=d2;} Kropka(kt,x,y); } } else //dx