61#define GL_HEX2COLOR( hex ) ((gl_color_t)((((hex) & 0xF80000)>>8) | (((hex) & 0x00FC00)>>5) | (((hex) & 0x0000F8)>>3)))
66#define GL_RGB2COLOR( r, g, b ) (gl_color_t) ((((gl_color_t)r >> 3) << 11) | (((gl_color_t)g >> 2) << 5) | ((gl_color_t)b >> 3))
71#define GL_RED_OF( c ) (((gl_color_t)c >> 11) << 3)
76#define GL_GREEN_OF( c ) (((gl_color_t)c >> 5) << 2)
81#define GL_BLUE_OF( c ) ((gl_color_t)c << 3)
86#define GL_LUMA_OF( c ) ((GL_RED_OF(c)+((gl_color_t)GL_GREEN_OF(c)<<1)+GL_BLUE_OF(c))>>2)
gl_palette
Definition gl_colors.h:92
@ GL_ORCHID
Definition gl_colors.h:200
@ GL_DARK_OLIVE_GREEN
Definition gl_colors.h:122
@ GL_SALMON
Definition gl_colors.h:217
@ GL_HOT_PINK
Definition gl_colors.h:151
@ GL_OLD_LACE
Definition gl_colors.h:195
@ GL_LIGHT_SLATE_GRAY
Definition gl_colors.h:171
@ GL_SEA_SHELL
Definition gl_colors.h:220
@ GL_DIM_GREY
Definition gl_colors.h:136
@ GL_FOREST_GREEN
Definition gl_colors.h:140
@ GL_GHOST_WHITE
Definition gl_colors.h:143
@ GL_GOLDEN_ROD
Definition gl_colors.h:145
@ GL_INDIGO
Definition gl_colors.h:153
@ GL_DARK_ORCHID
Definition gl_colors.h:124
@ GL_PALE_GOLDEN_ROD
Definition gl_colors.h:201
@ GL_DARK_VIOLET
Definition gl_colors.h:132
@ GL_GREEN_YELLOW
Definition gl_colors.h:149
@ GL_PERU
Definition gl_colors.h:207
@ GL_LIGHT_GRAY
Definition gl_colors.h:164
@ GL_BLUE
Definition gl_colors.h:102
@ GL_RED
Definition gl_colors.h:213
@ GL_CRIMSON
Definition gl_colors.h:112
@ GL_DIM_GRAY
Definition gl_colors.h:135
@ GL_TAN
Definition gl_colors.h:230
@ GL_LIGHT_GOLDEN_ROD_YELLOW
Definition gl_colors.h:163
@ GL_GREY
Definition gl_colors.h:147
@ GL_DARK_GRAY
Definition gl_colors.h:117
@ GL_YELLY_BEAN
Definition gl_colors.h:243
@ GL_AQUAMARINE
Definition gl_colors.h:96
@ GL_LAVENDER
Definition gl_colors.h:156
@ GL_SKY_BLUE
Definition gl_colors.h:223
@ GL_DARK_ORANGE
Definition gl_colors.h:123
@ GL_LIGHT_SKY_BLUE
Definition gl_colors.h:170
@ GL_SPRING_GREEN
Definition gl_colors.h:228
@ GL_SLATE_GREY
Definition gl_colors.h:226
@ GL_DARK_KHAKI
Definition gl_colors.h:120
@ GL_WHITE_SMOKE
Definition gl_colors.h:238
@ GL_CHARTREUSE
Definition gl_colors.h:107
@ GL_MEDIUM_BLUE
Definition gl_colors.h:181
@ GL_BLACK
Definition gl_colors.h:100
@ GL_PALE_TURQUOISE
Definition gl_colors.h:203
@ GL_AZURE
Definition gl_colors.h:97
@ GL_AQUA
Definition gl_colors.h:95
@ GL_HONEY_DEW
Definition gl_colors.h:150
@ GL_DARK_CYAN
Definition gl_colors.h:115
@ GL_PALE_GREEN
Definition gl_colors.h:202
@ GL_SILVER
Definition gl_colors.h:222
@ GL_MEDIUM_SLATE_BLUE
Definition gl_colors.h:185
@ GL_FLORAL_WHITE
Definition gl_colors.h:139
@ GL_LIGHT_SALMON
Definition gl_colors.h:168
@ GL_SADDLE_BROWN
Definition gl_colors.h:216
@ GL_CITRINE
Definition gl_colors.h:244
@ GL_DEEP_PINK
Definition gl_colors.h:133
@ GL_INDIAN_RED
Definition gl_colors.h:152
@ GL_LIGHT_STEEL_BLUE
Definition gl_colors.h:173
@ GL_LIGHT_CORAL
Definition gl_colors.h:161
@ GL_NAVY
Definition gl_colors.h:194
@ GL_BLUE_VIOLET
Definition gl_colors.h:103
@ GL_GREEN
Definition gl_colors.h:148
@ GL_EAGLE_GREEN
Definition gl_colors.h:242
@ GL_DARK_RED
Definition gl_colors.h:125
@ GL_LIME
Definition gl_colors.h:175
@ GL_LAWN_GREEN
Definition gl_colors.h:158
@ GL_CORNFLOWER_BLUE
Definition gl_colors.h:110
@ GL_BROWN
Definition gl_colors.h:104
@ GL_LIGHT_BLUE
Definition gl_colors.h:160
@ GL_BLANCHED_ALMOND
Definition gl_colors.h:101
@ GL_SEA_GREEN
Definition gl_colors.h:219
@ GL_PLUM
Definition gl_colors.h:209
@ GL_ORANGE
Definition gl_colors.h:198
@ GL_YELLOW
Definition gl_colors.h:239
@ GL_CYAN
Definition gl_colors.h:113
@ GL_BISQUE
Definition gl_colors.h:99
@ GL_MAGENTA
Definition gl_colors.h:178
@ GL_VIOLET
Definition gl_colors.h:235
@ GL_FUCHSIA
Definition gl_colors.h:141
@ GL_MEDIUM_SPRING_GREEN
Definition gl_colors.h:186
@ GL_DARK_GUNMENT
Definition gl_colors.h:246
@ GL_DARK_GOLDEN_ROD
Definition gl_colors.h:116
@ GL_LIGHT_YELLOW
Definition gl_colors.h:174
@ GL_LIGHT_SEA_GREEN
Definition gl_colors.h:169
@ GL_LINEN
Definition gl_colors.h:177
@ GL_CADET_BLUE
Definition gl_colors.h:106
@ GL_BEIGE
Definition gl_colors.h:98
@ GL_DARK_MAGENTA
Definition gl_colors.h:121
@ GL_MISTY_ROSE
Definition gl_colors.h:191
@ GL_PINK
Definition gl_colors.h:208
@ GL_CORNSILK
Definition gl_colors.h:111
@ GL_ROYAL_BLUE
Definition gl_colors.h:215
@ GL_REBECCA_PURPLE
Definition gl_colors.h:212
@ GL_NAVAJO_WHITE
Definition gl_colors.h:193
@ GL_LIGHT_SLATE_GREY
Definition gl_colors.h:172
@ GL_DARK_TURQUOISE
Definition gl_colors.h:131
@ GL_ANTIQUE_WHITE
Definition gl_colors.h:94
@ GL_BURLY_WOOD
Definition gl_colors.h:105
@ GL_MAROON
Definition gl_colors.h:179
@ GL_THISTLE
Definition gl_colors.h:232
@ GL_WHEAT
Definition gl_colors.h:236
@ GL_LEMON_CHIFFON
Definition gl_colors.h:159
@ GL_LIGHT_PINK
Definition gl_colors.h:167
@ GL_PAYNES_GRAY
Definition gl_colors.h:245
@ GL_FIRE_BRICK
Definition gl_colors.h:138
@ GL_OLIVE_DRAB
Definition gl_colors.h:197
@ GL_MEDIUM_AQUA_MARINE
Definition gl_colors.h:180
@ GL_OLIVE
Definition gl_colors.h:196
@ GL_TOMATO
Definition gl_colors.h:233
@ GL_ORANGE_RED
Definition gl_colors.h:199
@ GL_MOCCASIN
Definition gl_colors.h:192
@ GL_GAINSBORO
Definition gl_colors.h:142
@ GL_MEDIUM_SEA_GREEN
Definition gl_colors.h:184
@ GL_DARK_SEA_GREEN
Definition gl_colors.h:127
@ GL_DEEP_SKY_BLUE
Definition gl_colors.h:134
@ GL_MIDNIGHT_BLUE
Definition gl_colors.h:189
@ GL_SNOW
Definition gl_colors.h:227
@ GL_SLATE_GRAY
Definition gl_colors.h:225
@ GL_LIGHT_GREY
Definition gl_colors.h:165
@ GL_SANDY_BROWN
Definition gl_colors.h:218
@ GL_LAVENDER_BLUSH
Definition gl_colors.h:157
@ GL_DARK_GREEN
Definition gl_colors.h:119
@ GL_LIME_GREEN
Definition gl_colors.h:176
@ GL_CHARLESTON_GREEN
Definition gl_colors.h:247
@ GL_PURPLE
Definition gl_colors.h:211
@ GL_DARK_SLATE_GREY
Definition gl_colors.h:130
@ GL_ROSY_BROWN
Definition gl_colors.h:214
@ GL_MEDIUM_TURQUOISE
Definition gl_colors.h:187
@ GL_MEDIUM_ORCHID
Definition gl_colors.h:182
@ GL_GRAY
Definition gl_colors.h:146
@ GL_SLATE_BLUE
Definition gl_colors.h:224
@ GL_CHOCOLATE
Definition gl_colors.h:108
@ GL_MINT_CREAM
Definition gl_colors.h:190
@ GL_CORAL
Definition gl_colors.h:109
@ GL_PAPAYA_WHIP
Definition gl_colors.h:205
@ GL_DARK_SALMON
Definition gl_colors.h:126
@ GL_SIENNA
Definition gl_colors.h:221
@ GL_TEAL
Definition gl_colors.h:231
@ GL_DARK_BLUE
Definition gl_colors.h:114
@ GL_STEEL_BLUE
Definition gl_colors.h:229
@ GL_WHITE
Definition gl_colors.h:237
@ GL_DARK_GREY
Definition gl_colors.h:118
@ GL_PALE_VIOLET_RED
Definition gl_colors.h:204
@ GL_ALICE_BLUE
Definition gl_colors.h:93
@ GL_LIGHT_CYAN
Definition gl_colors.h:162
@ GL_IVORY
Definition gl_colors.h:154
@ GL_POWDER_BLUE
Definition gl_colors.h:210
@ GL_YELLOW_GREEN
Definition gl_colors.h:240
@ GL_DODGER_BLUE
Definition gl_colors.h:137
@ GL_LIGHT_GREEN
Definition gl_colors.h:166
@ GL_TURQUOISE
Definition gl_colors.h:234
@ GL_PEACH_PUFF
Definition gl_colors.h:206
@ GL_KHAKI
Definition gl_colors.h:155
@ GL_DARK_SLATE_BLUE
Definition gl_colors.h:128
@ GL_MEDIUM_PURPLE
Definition gl_colors.h:183
@ GL_DARK_SLATE_GRAY
Definition gl_colors.h:129
@ GL_MEDIUM_VIOLET_RED
Definition gl_colors.h:188
@ GL_GOLD
Definition gl_colors.h:144
#define GL_RGB2COLOR(r, g, b)
Definition gl_colors.h:66
#define GL_HEX2COLOR(hex)
Definition gl_colors.h:61
uint16_t gl_color_t
Definition gl_colors.h:56