Class

Weather

Weather() → {Weather}

Constructor

# new Weather() → {Weather}

The builtin weather system.

View Source weather.js, line 34

Weather

Methods

# close() → {undefined}

Closes down the weather system, and destroys any canvases. Only use this if you want to free up resources.

View Source weather.js, line 90

undefined

# show(config) → {undefined}

Shows the weather system based the supplied config.
Parameters:
Name Type Description
config Object

View Source weather.js, line 72

undefined
Example
let config = {
   rain: {
      sound: "rain.wav"
   }
};
await weather.show(config);
console.log("weather started");
rpgcode.endProgram();