home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / basic / PGL.ZIP / PGLCS.ZIP / FILLMOD.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-20  |  922 b   |  38 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include "pgl.h"
  4.  
  5. main()
  6.  
  7. {
  8.    int err=0;
  9.  
  10.    pgInitDrw( "fillmod.plt", 2000, 2000, &err );
  11.    if( err != 0 )
  12.    {
  13.       printf( "ERROR IN INITDRW ROUTINE" );
  14.       exit( 1 );
  15.    }
  16.    pgSetTextStyle( pgTRIPLEX );
  17.    pgSetTextJustify( pgCENTER, pgBOTTOM );
  18.    pgSetCharSpacing( 3 );
  19.    pgSetTextScaling( 2, 1, 2, 1 );
  20.    pgSetColor( 15 );
  21.  
  22.    pgSetFillMode( pgOPAQ );
  23.    pgSetFillStyle( pgFSLASH, 1 );
  24.    pgEllipse( 750, 500, 500, 300, pgOFILL );
  25.    pgSetFillStyle( pgFBKSLASH, 1 );
  26.    pgEllipse( 1250, 500, 500, 300, pgOFILL );
  27.    pgDrawTextXY( 1000, 900, "Opaque Fill Mode" );
  28.  
  29.    pgSetFillMode( pgTRANS );
  30.    pgSetFillStyle( pgFSLASH, 1 );
  31.    pgEllipse( 750, 1500, 500, 300, pgOFILL );
  32.    pgSetFillStyle( pgFBKSLASH, 1 );
  33.    pgEllipse( 1250, 1500, 500, 300, pgOFILL );
  34.    pgDrawTextXY( 1000, 1900, "Transparent Fill Mode" );
  35.  
  36.    pgEndDrw();
  37. }
  38.