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

  1. polyfill(x,y,sides,nh,b_color,f_color,type)
  2. int *x; /* pointer to array of column coordinates */
  3. int *y; /* pointer to array of row coordinates */
  4. int sides; /* number of sides */
  5. int nh;      /* number of hatches */
  6. int b_color; /* boundary color of polygon */
  7. int f_color; /* fill color of polygon */
  8. int type;    /* absolute or relative */
  9. {
  10.     if (nh > 0)
  11.         eg_polygon(x,y,sides,1,b_color,3,f_color,type);
  12.     else
  13.         if (nh == -1)        
  14.             eg_polygon(x,y,sides,1,b_color,1,f_color,type);
  15.         else
  16.             eg_polygon(x,y,sides,1,b_color,2,f_color,type);
  17. }
  18.  
  19.