clear_canvas
Clears a canvas.
arguments
-
"canvas_name" : String
The name of the canvas to clear.
-
"invert_window" : Boolean (default: false)
If true, and a window is provided, then the area outside the window is cleared.
-
"render_context_name" : String
The name of the render context to store retrieve the canvas from.
-
"scene_name" : String
The name of the scene that contains the render context.
-
"value" : Data (default: null)
The value to clear to. If not provided then the canvas is cleared to 0. The type of this argument is dependent on the canvas pixel type. For color types it must be an IColor, for scalar formats an INumber and for vectors a Float32 vector of the appropriate size.
-
"window" : Window_data (default: null)
If set then only the region within the window is cleared.