Methods
# close() → {undefined}
Closes down the weather system, and destroys any canvases.
Only use this if you want to free up resources.
undefined
# show(config) → {undefined}
Shows the weather system based the supplied config.
Parameters:
Name | Type | Description |
---|---|---|
config |
Object |
undefined
Example
let config = {
rain: {
sound: "rain.wav"
}
};
await weather.show(config);
console.log("weather started");
rpgcode.endProgram();