ClearScreen()The function clears all graphics from screen. This is an important function, especially when you use events. It is a good idea to call ClearScreen before you redraw a scene. Example:
$StartTime = GetTime() function OnTimer() ClearScreen() CurrentTime = GetTime() DrawText(125, 125, ((CurrentTime - $StartTime)/1000) & " seconds passed") end functionThis is how result would look like (red coordinates are just for reference):

See also: