home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m242 / 2.ddi / VER2FUNC.ZIP / REL_POLY.C < prev    next >
Encoding:
Text File  |  1989-10-16  |  440 b   |  14 lines

  1. /* function to draw a polygon (set of lines) from 2 arrays of pts. */
  2. /* it will be drawn using absolute coordinates */
  3.  
  4. rel_poly(x,y,sides,close,color)
  5. int *x;    /* pointer to array of x coordinates */
  6. int *y;    /* pointer to array of y coordinates */
  7. int sides; /* number of sides */
  8. int close; /* 0 - don't close the polygon, 1 - close it */
  9. int color; /* color of shape */
  10. {
  11.     eg_polygon(x,y,sides,close,color,0,0,0);
  12. }
  13.  
  14.