Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>pat_setfil()</b> g_exam07 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PAT_SETFIL()                                                        G_EXAM07
   Selects a pattern to be used with filled figures.

   Syntax
         PAT_SETFIL(nPatternNo [,nSolidColor,nPatternColor,nBGColor])

   Arguments
         nPatternNo     Internal pattern number. (0-11)
                        +---------------------+
                        |    FILL PATTERNS    |
                        ----------------------|
                        |Number |Patterns     |
                        --------+-------------|
                        | 0     |No pattern   |
                        | 1     |Solid        |
                        | 2     |/ / / /      |
                        | 3     |\ \ \ \      |
                        | 4     |X X X X      |
                        | 5     |///////      |
                        | 6     |\\\\\\\      |
                        | 7     |XXXXXXX      |
                        | 8     ||||||||      |
                        | 9     |=======      |
                        |10     |#######      |
                        |11     |Dithered     |
                        +---------------------+
         OPTIONAL PARAMETERS
         nSolidColor    Reset default solid fill color. Default is edge
                        color.
         nPatternColor  Reset default pattern color. Default is the edge
                        color.
         nBGColor       Reset default background color. Default is
                        transparent.

   Description
         PAT_SETFIL() allows you to select a pattern to fill closed figures
         such as boxes, circles, and pie slices. It also allows you to select
         a pattern for FILLAREA(). Type 11 dithers the solid colors so they
         appear as different gray colors on a monochrome device.

         The default pattern fill colors can be changed by entering the three
         optional parameters. Pattern 1 will normally fill an object with a
         solid color. This fill color can be changed by changing nSolidColor.
         A filled pattern will normally fill the object with the edge color
         and the background of the pattern will be transparent. These two
         colors can be changed by reseting nPatternColor and nBGColor.

See Also: FBOX() FPOLY_LINE() PAT_EDFILL() SET_STYLE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson