Sets the colour of the region inside the game window but outside the visible views (default is black).



Argument Description
colour The colour to set the region.



This function can set the background colour of the game window. This colour represents that which will be used for those areas of the game window that are not occupied by any views. The following image illustrates this:

The above image has two views with two view ports, each one drawn at different positions. This stretches the game window to accommodate both ports and uses the window colour to colour the background where no view is shown.


if window_get_colour() != c_black

The above code will check the window colour to see if it is set as black or not, and if it is not it sets it to black.

Back: The Game Window
Next: window_set_fullscreen
© Copyright YoYo Games Ltd. 2018 All Rights Reserved