Skip to content

five-on-it / apps/client/src/renderer/night-view / NIGHT

Variable: NIGHT ​

const NIGHT: object

Defined in: apps/client/src/renderer/night-view.ts:50

How the night is lit.

Type Declaration ​

from ​

readonly from: 0.05 = 0.05

Darker than this (0 by day, 1 at night) the lamps and the windows are lit.

glass ​

readonly glass: 0.2 = 0.2

The sheen of the glass at night (a share of its own colour): what an unlit window keeps.

halo ​

readonly halo: 1.1 = 1.1

The halo at a lit lamp's head: its radius (m), how far over the head it floats, its strength of the pool's.

haloLift ​

readonly haloLift: 0.5 = 0.5

haloStrength ​

readonly haloStrength: 2.1 = 2.1

headlightCone ​

readonly headlightCone: 1.7 = 1.7

headlightFalloff ​

readonly headlightFalloff: 8 = 8

headlightRange ​

readonly headlightRange: 40 = 40

The player's spotlight: its reach (m), its strength, its cone (rad) and how fast it dims toward the cone's edge.

headlights ​

readonly headlights: 1.5 = 1.5

pool ​

readonly pool: 0.42 = 0.42

The pools' strength at night (what is added of their light).

poolProbe ​

readonly poolProbe: 3 = 3

A pool leans with the ground under it, read this far from the lamp's foot (m), by this much at most (rise over run).

poolSlope ​

readonly poolSlope: 0.35 = 0.35

warm ​

readonly warm: readonly [1, 0.84, 0.55]

The warm light of a lamp's pool.