draw_clear

Clears the entire screen with colour.

Syntax:

GML Code Example

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:

GML Code Example

draw_clear(c_blue);

This will clear the screen with the colour blue.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here