Skip to content

GB_set_light_temperature

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

void GB_set_light_temperature(GB_gameboy_t *gb, double temperature);

In display.h

Description

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.

Thread Safety

GB_set_light_temperature is thread-safe and can be called from any thread and context.

Notes

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.

See Also

Clone this wiki locally