home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / splot122.zip / DEMO / BASIC.SPT < prev    next >
Text File  |  1994-05-25  |  597b  |  27 lines

  1. /* file basic.spt */ 
  2. /* Demo of a simple drawing using */ 
  3. /* some built-in functions */ 
  4.  
  5. #include <splot.h>
  6. main() 
  7.    {     
  8.    /* draw two boxes */
  9.    box(6.0,20.0,11.0,16.0);
  10.    box(6.5,19.5,8.5,18.0);
  11.    stroke();
  12.    /* draw two circles */
  13.    /* input coordinates with mouse */
  14.    arc(5.95,10.91,2.0,0,360);
  15.    stroke();
  16.    arc(8.96,10.73,1.0,0,360);
  17.    stroke();
  18.    /* draw a triangle */
  19.    moveto(7.0,5.0);
  20.    lineto(9.0,7.0);
  21.    lineto(11.0,5.0);
  22.    lineto(7.0,5.0);
  23.    stroke(); 
  24.    /* add some text */
  25.    text(4.45,23.22,"Basic Drawing using defaults");
  26.    }
  27.