- int color;
- if( sscanf(hex,"%x",&color) == 1 ) {
- float r = ((color>>16) & 0xff) / 255.;
- float g = ((color>>8) & 0xff) / 255.;
- float b = ((color>>0) & 0xff) / 255.;
- window->rgb.r = r; window->rgb.g = g; window->rgb.b = b;
- window->update_rgb();
- window->update_display();
- window->update_history();
- window->handle_event();
- }