Skip to content

five-on-it / apps/client/src/renderer/weather-view / WEATHER_VIEW

Variable: WEATHER_VIEW ​

const WEATHER_VIEW: object

Defined in: apps/client/src/renderer/weather-view.ts:38

How the weather is drawn.

Type Declaration ​

across ​

readonly across: 64 = 64

The box the rain and the snow fill round the camera's target (m): across, and high.

drops ​

readonly drops: 1400 = 1400

Rain streaks drawn at a downpour, with a GPU and without.

dropsSoftware ​

readonly dropsSoftware: 400 = 400

flakes ​

readonly flakes: 1100 = 1100

Snowflakes drawn at the heaviest snow, with a GPU and without.

flakesSoftware ​

readonly flakesSoftware: 350 = 350

flashEvery ​

readonly flashEvery: readonly [5, 16]

Lightning: a flash every so many seconds at a full storm (fewer in a weaker one), its light added to the sky's.

flashLight ​

readonly flashLight: 1.4 = 1.4

high ​

readonly high: 36 = 36

mudDark ​

readonly mudDark: 0.75 = 0.75

Mud keeps this share of its colour.

rainFall ​

readonly rainFall: 18 = 18

How fast a drop and a flake fall (m/s).

snowFall ​

readonly snowFall: 1.6 = 1.6

snowLoose ​

readonly snowLoose: 0.75 = 0.75

Snow whitens loose ground and grass this much at a full cover, paved ground and roofs this much.

snowPaved ​

readonly snowPaved: 0.35 = 0.35

wetDark ​

readonly wetDark: 0.62 = 0.62

A wet road keeps this share of its colour…

wetShine ​

readonly wetShine: 0.32 = 0.32

…and catches this much of the light.