home *** CD-ROM | disk | FTP | other *** search
- ****************************************************************************
- * FILLMOD.PRG
- *
- * Fill mode demo program.
- ****************************************************************************
- *
- * Include PGL.PRG
- *
- SET PROCEDURE TO PGL
- DO PGLINIT
- *
- PUBLIC ierr
- **************************************************************************
- * - MAIN PROCEDURE
- **************************************************************************
- *
- * Open A Drawing File
- *
- pgINIT( 'fillmod.plt' , 2000, 2000, @ierr )
- if ierr <> 0
- ? "error opening drawing file!"
- return
- end if
-
-
- pgSTStyle( pgTRIPLEX )
- pgSTJust( pgCENTER, pgTOP )
- pgSCHARSP( 3 )
- pgSTScale( 2, 1, 2, 1 )
- pgSColor( 15 )
-
- * Set fill mode to opaque
- pgSFMode( pgOPAQ )
-
- pgSFStyle( pgFSLASH, 1 )
- pgEll( 750, 500, 500, 300, pgOFILL )
- pgSFStyle( pgFBKSLASH, 1 )
- pgEll( 1250, 500, 500, 300, pgOFILL )
- pgDTXY( 1000, 900, 'Opaque Fill Mode' )
-
- * Set fill mode to transparent
- pgSFMode( pgTRANS )
-
- pgSFStyle( pgFSLASH, 1 )
- pgEll( 750, 1500, 500, 300, pgOFILL )
- pgSFStyle( pgFBKSLASH, 1 )
- pgEll( 1250, 1500, 500, 300, pgOFILL )
- pgDTXY( 1000, 1900, 'Transparent Fill Mode' )
-
- *
- * Close The Drawing File.
- *
- pgEND()
- *
- * - END MAIN PROCEDURE
- *