home *** CD-ROM | disk | FTP | other *** search
- #include <stdlib.h>
- #include <stdio.h>
- #include "pgl.h"
-
- main()
-
- {
- int err=0;
-
- pgInitDrw( "fillmod.plt", 2000, 2000, &err );
- if( err != 0 )
- {
- printf( "ERROR IN INITDRW ROUTINE" );
- exit( 1 );
- }
- pgSetTextStyle( pgTRIPLEX );
- pgSetTextJustify( pgCENTER, pgBOTTOM );
- pgSetCharSpacing( 3 );
- pgSetTextScaling( 2, 1, 2, 1 );
- pgSetColor( 15 );
-
- pgSetFillMode( pgOPAQ );
- pgSetFillStyle( pgFSLASH, 1 );
- pgEllipse( 750, 500, 500, 300, pgOFILL );
- pgSetFillStyle( pgFBKSLASH, 1 );
- pgEllipse( 1250, 500, 500, 300, pgOFILL );
- pgDrawTextXY( 1000, 900, "Opaque Fill Mode" );
-
- pgSetFillMode( pgTRANS );
- pgSetFillStyle( pgFSLASH, 1 );
- pgEllipse( 750, 1500, 500, 300, pgOFILL );
- pgSetFillStyle( pgFBKSLASH, 1 );
- pgEllipse( 1250, 1500, 500, 300, pgOFILL );
- pgDrawTextXY( 1000, 1900, "Transparent Fill Mode" );
-
- pgEndDrw();
- }