1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86:
| implementation var xmin,xmax,ymin,ymax,k,i,z:Integer;
begin Brush.Color:=clWhite; Pen.Color:=clBlack; RectAngle(0,0,402,402);
xmin:=1; xmax:=401; ymin:=1; ymax:=401; for i:=1 to z do begin Pen.Color:=clLtGray; moveto(xmin+k*i,ymin); lineto(xmin+k*i,ymax); Pen.Color:=clBlack; moveto(xmin+k*i,201-3); lineto(xmin+k*i,201+3); end; for i:=1 to z do begin Pen.Color:=clLtGray; moveto(xmin,ymin+k*i); lineto(xmax,ymin+k*i); Pen.Color:=clBlack; moveto(201-3,ymin+k*i); lineto(201+3,ymin+k*i); end;
moveto(xmin,201); lineto(xmax,201); moveto(201,ymin); lineto(201,ymax);
Brush.Color:=clBlack; Polygon([Point(390,198),Point(401,201),Point(390,204),Point(390,198)]);
Polygon([Point(198,11),Point(201,1),Point(204,11),Point(198,11)]); Brush.Color:=clWhite;
Textout(390,205,'x'); Textout(190,1,'y');
if k=25 then begin Textout(222,205,'1'); Textout(169,205,'-1'); Textout(190,169,'1'); Textout(186,219,'-1'); end; if k=10 then begin Textout(222,205,'3'); Textout(169,205,'-3'); Textout(190,169,'3'); Textout(186,219,'-3'); end;
if k=50 then begin TextOut(245,205, '1'); TextOut(142,205,'-1'); TextOut(181,145, '1'); TextOut(178,245,'-1'); end;
if k=5 then begin Textout(222,205,'5'); Textout(169,205,'-5'); Textout(190,169,'5'); Textout(186,219,'-5'); end; |