home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / do1beta.zip / POLY.DO < prev    next >
Text File  |  1991-07-19  |  360b  |  13 lines

  1. /*
  2.     demonstration of BGI drawPoly
  3. */
  4. #include "bgidef.do"
  5.  
  6. initGraph(DETECT,0,envSymbol("bgipath"));
  7. outTextXY(100,50,"BGI drawPoly Demonstration");
  8. drawPoly([50,50,100,100,150,150,200,200,150,200,100,250,50,300,50,50]);
  9. fillPoly([300,300,330,330,320,360,310,370,
  10.     300,380]);
  11. outTextXY(20,450,"Press any key to continue...");
  12. inkey();
  13. closeGraph();