GetBackgroundColor /Environment and display

uint GetBackgroundColor()

Returns the current background color in a 32-bit pixel format (e.g. 0xFFFF0000 or ARGB(255,255,0,0)). The background color is used to fill the entire back-buffer at the beginning of every frame.

uint black = 0xFF000000;
uint white = ARGB(255,255,255,255);

uint bgColor = GetBackgroundColor();

if (bgColor == black)
    print("too dark!");

if (bgColor == white)
    print("too bright!");