What it does
scene.setClearColor sets ClearColor on a scene object. It takes r, g, b and a. a is optional.
Signature
scene.setClearColor(r, g, b, a?)Arguments
rgbaoptional
Example · generated
function start() { scene.setClearColor(1, 0.8, 0.4);}scene.setClearColor is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.