Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

 Foreground Background   Monochrome     Color          Background  Foreground
 ---------- ----------   ----------     -----          ----------  ----------
   0          0          Black          Black            Sample      Sample 
   1          16         Underlined     Blue             Sample      Sample 
   2          32                        Green            Sample      Sample 
   3          48                        Cyan             Sample      Sample 
   4          64                        Red              Sample      Sample 
   5          80                        Violet           Sample      Sample 
   6          96                        Brown            Sample      Sample 
   7          112        White          White            Sample      Sample 

   8          128                       Grey             Sample      Sample 
   9          144        Brt Underline  Bright Blue      Sample      Sample 
  10          160                       Bright Green     Sample      Sample 
  11          176                       Bright Cyan      Sample      Sample 
  12          192                       Bright Red       Sample      Sample 
  13          208                       Bright Violet    Sample      Sample 
  14          224                       Yellow           Sample      Sample 
  15          240        Bright White   Bright White     Sample      Sample 

        FUNCky video functions and some mouse functions take a color
        attribute as an integer. Using an integer attribute results in
        greater execution speed since a string of values does not have to
        be parsed and converted to the integer required by the video adaptor.
        In the case of the 48 extra colors available on the EGA with the
        palette() function, color strings are not even defined, and an
        integer value MUST be used.

        The integer attribute is the actual bit value of the color as will
        be displayed by the video monitor. The right 4 bits of the attribute
        byte define the foreground color, and the left 4 bits define the
        background color. This is the reason you only have 16 color values
        for foreground and background. 0-15 is the range of numbers that
        can be defined in 4 bits.

        To calculate the integer attribute is simple. You can even use the
        table in the Clipper manual (numbers only). To find the background
        value. Take the number that corresponds to the color you want and
        multiply it by 16. Therefore, the background value for blue would
        be 1*16 or, 16. Save this number in your head. To figure the
        foreground color, just find the number that corresponds to the
        foreground color you want. If it's white, then the foreground
        color is 7. To calculate the integer attribute, pop the background
        color you calculated before and add it to the foreground color.
        The integer attribute for White/Blue would then become (16+7) == 23.
        So 23 is the attribute. To make the attribute blinking, just add
        128 to the result.

        You can only get high intensity background colors if you use the
        blinkbit() function to turn the blink bit off, thereby enabling
        the blink bit to act as the high intensity bit for the background.

        In addition, the palette() function lets you define 16 out of 64
        colors on EGA type adaptors. The additional colors used by the
        palette() function are as follows:

  BLUES:    Color value    - Description
                 1         - Blue               * default for palette 1
                 8         - Deep dark blue
                 9         - very high intensity blue
                 11        - high intensity blue
                 13        - bluish-purple
                 17        - sky blue
                 24        - grayish-blue
                 25        - high intensity deep blue
                 33        - dim purple
                 41        - intense bright blue
                 57        - bright blue        * default for 9

  GREENS:   Color value    - Description
                 2         - green              * default for palette 2
                 10        - aqua green
                 16        - dim green
                 18        - high intensity green
                 19        - mid intensity green
                 22        - high intensity light green
                 23        - high intensity pale green
                 26        - bright green
                 34        - yellow green
                 42        - pale light green
                 48        - olive green
                 51        - blue-green
                 58        - bright green       * default for 10

  CYANS:    Color value    - Description
                 3         - cyan               * default for palette 3
                 27        - high intensity cyan
                 31        - light cyan
                 35        - light cyan
                 43        - high intensity cyan
                 49        - pale cyan
                 59        - bright cyan        * default for 11

  REDS:     Color value    - Description
                 4         - red                * default for palette 4
                 12        - deep rose color
                 32        - deep dark red
                 36        - intense red
                 44        - intense rose
                 52        - burnt orange
                 60        - bright red         * default for 12

  MAGENTAS: Color value    - Description
                 5         - magenta            * default for palette 5
                 15        - mid intensity purple
                 21        - pale violet
                 28        - pale wine color
                 29        - light blue-purple
                 37        - intense magenta
                 39        - bright pale wine
                 40        - deep purple
                 45        - bright purple
                 47        - pale purple
                 53        - dim magenta
                 61        - bright magenta     * default for 13

  YELLOWS:  Color value    - Description
                 6         - dim yellow
                 14        - very pale yellow
                 20        - brown              * default for 6
                 30        - light green-yellow
                 38        - intense brown
                 46        - pale reddish yellow
                 50        - high intensity yellow-green
                 54        - rich yellow
                 55        - pale yellow
                 62        - bright yellow      * default for 14

  GREYS:    Color value    - Description
                 0         - black              * default for palette 0
                 7         - white              * default for palette 7
                 56        - grey               * default for 8
                 63        - bright white       * default for 15


See Also: palette() standard() enhanced() unselected()

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