Updated GB_set_light_temperature (markdown)

Lior Halphon 2024-11-27 23:17:44 +02:00
parent 7ebabbe178
commit 5133a9177a
1 changed files with 11 additions and 1 deletions

@ -6,8 +6,18 @@ In `display.h`
## Description
TBD
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|GB_set_palette and GB_get_palette]].
## See Also
* [[GB_set_color_correction_mode]]
* [[GB_set_palette and GB_get_palette]]
* [[GB_set_rgb_encode_callback]]