home *** CD-ROM | disk | FTP | other *** search
- { FILLMODE.PAS }
- { PGL - Turbo Pascal Test Program }
- { Fillmode test program: pgOPAQ, pgTRANS }
-
- program fillmod;
- {$R-,S-}
- uses Crt, PGL;
-
- label
- ExitPgm;
-
- var
- ierr : integer;
-
- { **** FillMod main procedure **** }
- begin
- pgInitDrw( 'fillmod.plt', 2000, 2000, ierr );
- if ierr <> 0 then
- begin
- Write('Error in pgInitDrw' );
- goto ExitPgm;
- end;
-
- 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' );
-
- { Close The Drawing File. }
- pgEndDrw ;
- ExitPgm:
- end.