|
mikroSDK Reference Manual
|
Go to the documentation of this file.
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)
254 #endif // _GL_COLORS_H_
Definition: gl_colors.h:242
Definition: gl_colors.h:143
Definition: gl_colors.h:129
Definition: gl_colors.h:217
gl_palette
Definition: gl_colors.h:90
Definition: gl_colors.h:160
Definition: gl_colors.h:226
Definition: gl_colors.h:225
Definition: gl_colors.h:145
Definition: gl_colors.h:239
Definition: gl_colors.h:173
Definition: gl_colors.h:101
Definition: gl_colors.h:94
Definition: gl_colors.h:227
Definition: gl_colors.h:136
Definition: gl_colors.h:110
Definition: gl_colors.h:221
Definition: gl_colors.h:196
Definition: gl_colors.h:169
Definition: gl_colors.h:174
Definition: gl_colors.h:213
Definition: gl_colors.h:105
Definition: gl_colors.h:157
Definition: gl_colors.h:150
Definition: gl_colors.h:107
Definition: gl_colors.h:132
Definition: gl_colors.h:233
Definition: gl_colors.h:109
Definition: gl_colors.h:147
Definition: gl_colors.h:212
Definition: gl_colors.h:96
Definition: gl_colors.h:198
Definition: gl_colors.h:193
Definition: gl_colors.h:115
Definition: gl_colors.h:178
Definition: gl_colors.h:130
Definition: gl_colors.h:219
Definition: gl_colors.h:246
Definition: gl_colors.h:211
Definition: gl_colors.h:238
Definition: gl_colors.h:197
Definition: gl_colors.h:154
Definition: gl_colors.h:114
Definition: gl_colors.h:162
Definition: gl_colors.h:207
Definition: gl_colors.h:163
Definition: gl_colors.h:113
Definition: gl_colors.h:209
Definition: gl_colors.h:184
Definition: gl_colors.h:214
Definition: gl_colors.h:218
Definition: gl_colors.h:153
Definition: gl_colors.h:215
Definition: gl_colors.h:205
Definition: gl_colors.h:182
Definition: gl_colors.h:187
Definition: gl_colors.h:149
Definition: gl_colors.h:231
Definition: gl_colors.h:108
Definition: gl_colors.h:124
Definition: gl_colors.h:185
Definition: gl_colors.h:134
Definition: gl_colors.h:167
Definition: gl_colors.h:224
Definition: gl_colors.h:128
Definition: gl_colors.h:127
Definition: gl_colors.h:237
Definition: gl_colors.h:166
Definition: gl_colors.h:200
Definition: gl_colors.h:122
Definition: gl_colors.h:156
Definition: gl_colors.h:220
Definition: gl_colors.h:103
Definition: gl_colors.h:142
Definition: gl_colors.h:141
Definition: gl_colors.h:152
Definition: gl_colors.h:245
Definition: gl_colors.h:126
#define GL_HEX2COLOR(hex)
Definition: gl_colors.h:60
Definition: gl_colors.h:117
Definition: gl_colors.h:232
#define GL_RGB2COLOR(r, g, b)
Definition: gl_colors.h:65
Definition: gl_colors.h:189
Definition: gl_colors.h:171
Definition: gl_colors.h:139
Definition: gl_colors.h:164
Definition: gl_colors.h:120
Definition: gl_colors.h:195
Definition: gl_colors.h:146
Definition: gl_colors.h:168
Definition: gl_colors.h:183
uint16_t gl_color_t
Definition: gl_colors.h:55
Definition: gl_colors.h:179
Definition: gl_colors.h:234
Definition: gl_colors.h:137
Definition: gl_colors.h:158
Definition: gl_colors.h:97
Definition: gl_colors.h:228
Definition: gl_colors.h:159
Definition: gl_colors.h:202
Definition: gl_colors.h:175
Definition: gl_colors.h:241
Definition: gl_colors.h:144
Definition: gl_colors.h:116
Definition: gl_colors.h:244
Definition: gl_colors.h:121
Definition: gl_colors.h:165
Definition: gl_colors.h:180
Definition: gl_colors.h:104
Definition: gl_colors.h:131
Definition: gl_colors.h:223
Definition: gl_colors.h:106
Definition: gl_colors.h:177
Definition: gl_colors.h:118
Definition: gl_colors.h:170
Definition: gl_colors.h:140
Definition: gl_colors.h:191
Definition: gl_colors.h:99
Definition: gl_colors.h:210
Definition: gl_colors.h:192
Definition: gl_colors.h:125
Definition: gl_colors.h:194
Definition: gl_colors.h:95
Definition: gl_colors.h:100
Definition: gl_colors.h:204
Definition: gl_colors.h:230
Definition: gl_colors.h:151
Definition: gl_colors.h:208
Definition: gl_colors.h:235
Definition: gl_colors.h:161
Definition: gl_colors.h:92
Definition: gl_colors.h:243
Definition: gl_colors.h:112
Definition: gl_colors.h:138
Definition: gl_colors.h:216
Definition: gl_colors.h:190
Definition: gl_colors.h:203
Definition: gl_colors.h:176
Definition: gl_colors.h:119
Definition: gl_colors.h:111
Definition: gl_colors.h:181
Definition: gl_colors.h:155
Definition: gl_colors.h:222
Definition: gl_colors.h:133
Definition: gl_colors.h:98
Definition: gl_colors.h:148
Definition: gl_colors.h:135
Definition: gl_colors.h:123
Definition: gl_colors.h:188
Definition: gl_colors.h:186
Definition: gl_colors.h:201
Definition: gl_colors.h:199
Definition: gl_colors.h:206
Definition: gl_colors.h:229
Definition: gl_colors.h:172
Definition: gl_colors.h:102
Definition: gl_colors.h:93
Definition: gl_colors.h:236