home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / quickplot / part2 / testprogs.d / lined.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  270 b   |  21 lines

  1. /* diagaonal line lower left to upper right */
  2. main(argc,argv)
  3. int argc;
  4. char **argv;
  5. {
  6.     int x0,x1,y0,y1;
  7.  
  8.     x0 = 0;
  9.     y0 = 0;
  10.     x1 = 2000;
  11.     y1 = 2000;
  12.     space(x0,y0,2000,2000);
  13.     move(x0,y0);
  14.     label("+");
  15.     move(x1,y1);
  16.     label("+");
  17.     line(x0,y0,x1,y1);
  18.     erase();
  19.     exit(0);
  20. }
  21.