WebGraphics.ClearRect
From Xojo Documentation
Method
WebGraphics.ClearRect(X As Integer, Y As Integer, Width As Integer, Height As Integer)
Supported for all project types and targets.
Supported for all project types and targets.
Clears the rectangle described by the parameters passed by filling it with the background color.
Example
This example clears the entire drawing area:
g.ClearRect(0, 0, g.Width, g.Height)