-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_set_light_temperature
void GB_set_light_temperature(GB_gameboy_t *gb, double temperature);
In display.h
Game Boy Color and Game Boy Advance (excluding the SP models) did not have any form of backlight or frontlight, and their display was affected by the ambient light. This function sets the simulated light temperature used when rendering the screen of the emulator instance. The minimum value of temperature
is -1.0
, which corresponds to a light temperature of 1000K (warm red light), and the maximum value is 1.0
, which corresponds to a light temperature of 12000K (cool blue light). The default value is 0.0
, which corresponds to 6500K (neutral white) and effectively disables simulation of ambient light temperature.
GB_set_light_temperature
is thread-safe and can be called from any thread and context.
This value is not used when emulating monochrome models because they do not use RGB values. To control the appearance of these models, use GB_set_palette.