#include <nalt.hpp>
bgcolor_t color_code;
int r, g, b;
color_code = get_item_color(get_screen_ea());
if (color_code != DEFCOLOR)
{
// extract the RGB value from color_code (0xBBGGRR wonder why this is reversed)
b = (color_code & 0xFF0000) >> 16;
g = (color_code & 0x00FF00) >> 8;
r = (color_code & 0x0000FF);
}
msg("color R:%d G:%d B:%d\n", r, g, b);







