home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / graphics-0.17 / plot2ps / box.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-28  |  358 b   |  19 lines

  1. /* this file is the box routine, which is a standard part of the plot(3)
  2.    library. It draws a box given the coordinates of the diagonal corners, x0,y0
  3.    and x1,y1 */
  4.  
  5. #include "plot3.h"
  6.  
  7. int
  8. box (x0, y0, x1, y1)
  9.      int x0, y0, x1, y1;
  10. {
  11.   move (x0, y0);
  12.   cont (x0, y1);
  13.   cont (x1, y1);
  14.   cont (x1, y0);
  15.   cont (x0, y0);
  16.   move (x1, y1);
  17.   return 0;
  18. }
  19.