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>fcolor()</b> g_exam11 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FCOLOR()                                                            G_EXAM11
   Sets the background color for CGA 4-color mode.

   Syntax
         FCOLOR(nBackground,nPalette)

   Arguments
         nBackground Sets the background color number.
         nPalette    Sets the palette color number.

   Returns
         None

   Description
         The CGA card is limited to showing only four colors at a time. In
         mode 1, the background color can be any of 16 colors, 0-15. Two
         hardware palettes are available each with a different set of 4
         colors. The hardware palette is selected with FCOLOR() as palette 0
         or palette 1. The FLIPPER palette relates to the selected hardware
         palette as shown in the table.
        +--------------------------------------------------+
        |Palette Position|Hardware Palette|Hardware Palette|
        |                |      0         |      1         |
        -----------------+----------------+----------------|
        |0               |0 |background   |0 |background   |
        |1               |1 |green        |1 |cyan         |
        |2               |2 |red          |2 |magenta      |
        |3               |3 |brown        |3 |white        |
        |4               |1 |green        |1 |cyan         |
        |5               |2 |red          |2 |magenta      |
        |6               |3 |brown        |3 |white        |
        |7               |1 |green        |1 |cyan         |
        |8               |2 |red          |2 |magenta      |
        |9               |3 |brown        |3 |white        |
        |10              |1 |green        |1 |cyan         |
        |11              |2 |red          |2 |magenta      |
        |12              |3 |brown        |3 |white        |
        |13              |1 |green        |1 |cyan         |
        |14              |2 |red          |2 |magenta      |
        |15              |3 |brown        |3 |white        |
        +--------------------------------------------------+

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