# OS_FAVORITE_COLOR_*

## Definitions

  `#include <nitro/os.h>

      /* Owner information: /* Owner information: "Favorite color" definitions (0-15) */
      #define OS_FAVORITE_COLOR_GRAY         0x00
      #define OS_FAVORITE_COLOR_BROWN        0x01
      #define OS_FAVORITE_COLOR_RED          0x02
      #define OS_FAVORITE_COLOR_PINK         0x03
      #define OS_FAVORITE_COLOR_ORANGE       0x04
      #define OS_FAVORITE_COLOR_YELLOW       0x05
      #define OS_FAVORITE_COLOR_LIME_GREEN   0x06
      #define OS_FAVORITE_COLOR_GREEN        0x07
      #define OS_FAVORITE_COLOR_DARK_GREEN   0x08
      #define OS_FAVORITE_COLOR_SEA_GREEN    0x09
      #define OS_FAVORITE_COLOR_TURQUOISE    0x0A
      #define	OS_FAVORITE_COLOR_BLUE         0x0B
      #define OS_FAVORITE_COLOR_DARK_BLUE    0x0C
      #define OS_FAVORITE_COLOR_PURPLE       0x0D
      #define OS_FAVORITE_COLOR_VIOLET       0x0E
      #define OS_FAVORITE_COLOR_MAGENTA      0x0F
      #define OS_FAVORITE_COLOR_BITMASK      0x0F
      #define OS_FAVORITE_COLOR_MAX          0x10

      /* Owner information: "Favorite color" definitions (GXRgb) */
      #define OS_FAVORITE_COLOR_VALUE_GRAY        GX_RGB(12,16,19)
      #define OS_FAVORITE_COLOR_VALUE_BROWN       GX_RGB(23, 9, 0)
      #define OS_FAVORITE_COLOR_VALUE_RED         GX_RGB(31, 0, 3)
      #define OS_FAVORITE_COLOR_VALUE_PINK        GX_RGB(31,17,31)
      #define OS_FAVORITE_COLOR_VALUE_ORANGE      GX_RGB(31,18, 0)
      #define OS_FAVORITE_COLOR_VALUE_YELLOW      GX_RGB(30,28, 0)
      #define OS_FAVORITE_COLOR_VALUE_LIME_GREEN  GX_RGB(21,31, 0)
      #define OS_FAVORITE_COLOR_VALUE_GREEN       GX_RGB( 0,31, 0)
      #define OS_FAVORITE_COLOR_VALUE_DARK_GREEN  GX_RGB( 0,20, 7)
      #define OS_FAVORITE_COLOR_VALUE_SEA_GREEN   GX_RGB( 9,27,17)
      #define OS_FAVORITE_COLOR_VALUE_TURQUOISE   GX_RGB( 6,23,30)
      #define OS_FAVORITE_COLOR_VALUE_BLUE        GX_RGB( 0,11,30)
      #define OS_FAVORITE_COLOR_VALUE_DARK_BLUE   GX_RGB( 0, 0,18)
      #define OS_FAVORITE_COLOR_VALUE_PURPLE      GX_RGB(17, 0,26)
      #define OS_FAVORITE_COLOR_VALUE_VIOLET      GX_RGB(26, 0,29)
      #define OS_FAVORITE_COLOR_VALUE_MAGENTA      GX_RGB(31, 0,18)

  `

## Description

These are the constant values that define the numbers obtained when getting the owner information parameter "favorite color". Numbers correspond to colors as shown below:

Number | R | G | B | Image | Constant Name
0 | 12 | 16 | 19 |  | OS_FAVORITE_COLOR_GRAY
1 | 23 | 9 | 0 |  | OS_FAVORITE_COLOR_BROWN
2 | 31 | 0 | 3 |  | OS_FAVORITE_COLOR_RED
3 | 31 | 17 | 31 |  | OS_FAVORITE_COLOR_PINK
4 | 31 | 18 | 0 |  | OS_FAVORITE_COLOR_ORANGE
5 | 30 | 28 | 0 |  | OS_FAVORITE_COLOR_YELLOW
6 | 21 | 31 | 0 |  | OS_FAVORITE_COLOR_LIME_GREEN
7 | 0 | 31 | 0 |  | OS_FAVORITE_COLOR_GREEN
8 | 0 | 20 | 7 |  | OS_FAVORITE_COLOR_DARK_GREEN
9 | 9 | 27 | 17 |  | OS_FAVORITE_COLOR_SEA_GREEN
10 | 6 | 23 | 30 |  | OS_FAVORITE_COLOR_TURQUOISE
11 | 0 | 11 | 30 |  | OS_FAVORITE_COLOR_BLUE
12 | 0 | 0 | 18 |  | OS_FAVORITE_COLOR_DARK_BLUE
13 | 17 | 0 | 26 |  | OS_FAVORITE_COLOR_PURPLE
14 | 26 | 0 | 29 |  | OS_FAVORITE_COLOR_VIOLET
15 | 31 | 0 | 18 |  | OS_FAVORITE_COLOR_MAGENTA

To get the color value from a number, use the `OS_GetFavoriteColor` function.

## See Also

`OS_GetFavoriteColorTable`, `OS_GetFavoriteColor`

## Revision History

10/08/2004 Initial version