exports

exports

A horse. Because most people (myself included) don’t know horse appearance and how it’s described, we’re experimenting here with linking out to an image search.

exports

A generated topo map: the SVG source it came from, every Location createMap() produced from it, and the ordered DOM-substitution instructions a renderer needs to place them.

exports

Used for the simplest generators that return strings, such as Plot and LocationName. This gives us a consistent way to display and save the results of all generators.

exports

A weather report for a single day, including temperature, wind, precipitation, sky conditions, sun/moon timing, and gameplay effect warnings. Here’s one presentation of all this information:

“Temp: low 73° to high 98° (including windchill). Wind: 17 to 29 mph. Sky: Moderate drizzle today. Sun: Light from 5:04 to 20:24 (sunrise 5:33, sunset 19:55). Moon: 🌔 waxing gibbous moon (light from 20:24 to 3:37). Effects: Extra water rations, shade, and inactivity at the height of the heat are needed to avoid heat stroke, heat exhaustion, or death.”

Constructor

new exports()

Source:
Properties:
Name Type Description
tempMin number

Minimum temperature in °F (accounts for windchill).

tempMax number

Maximum temperature in °F (accounts for windchill).

windMax number

Maximum sustained wind speed in mph.

windGusts number

Maximum wind gust speed in mph.

rain number

Total rainfall in inches.

snowfall number

Total snowfall in inches.

sky string

WMO weather code description of sky conditions.

dawn string

Dawn time in HH:MM format (local time).

sunrise string

Sunrise time in HH:MM format (local time).

sunset string

Sunset time in HH:MM format (local time).

dusk string

Dusk time in HH:MM format (local time).

moonPhase string

Moon phase emoji icon.

moonText string

Moon phase description (e.g. "full moon (bright at night)").

moonLight string

Moon illumination level description.

moonRise string

Effective moonrise time in HH:MM format, bounded by dusk.

moonSet string

Effective moonset time in HH:MM format, bounded by dawn.