(Formerly known as RawClearScreen, which is now obsolete)
DrawingSurface.Clear(optional int colour)
Clears the surface to the specified COLOUR (this is a number you can find in
the Colours pane of the editor). The current contents of the surface will be lost.
If you do not supply the COLOUR parameter, or use COLOR_TRANSPARENT, the surface
will be cleared to be fully transparent.
Example:
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.Clear(14);
surface.DrawingColor = 13;
surface.DrawCircle(160,100,50);
surface.Release();
clears the room background to be fully yellow, then draws a pink circle in the middle of it.
See Also: DrawingSurface.DrawingColor
|