draw_clear

Clears the entire screen with colour.

Syntax:

draw_clear(col);


Argument Description
col The colour with which the screen will be cleared


Returns: N/A


Description

This function can be used to clear the entire screen (with no alpha blend) to the given colour, and is only for use in the draw event of an instance (it will not show if used in any other event). It can also be useful for clearing surfaces when they are newly created.


Example:

draw_clear(c_blue);

This will clear the screen with the colour blue.


Back: colour And blending
Next: draw_clear
© Copyright YoYo Games Ltd. 2018 All Rights Reserved