Skip to content

1681-engine / pixel / NightShadeOptions

Interface: NightShadeOptions ​

Defined in: src/pixel/NightShade.ts:5

Properties ​

carriedFrom? ​

ts
optional carriedFrom?: number;

Defined in: src/pixel/NightShade.ts:17

The night share below which nothing is carried (default 0.55): at dusk a hole round the feet reads as a spotlight.


carriedLight? ​

ts
optional carriedLight?: number;

Defined in: src/pixel/NightShade.ts:15

The radius (world px) of the light a body carries at full night; 0 for none (default 64).


clock ​

ts
clock: DayClock;

Defined in: src/pixel/NightShade.ts:7

The day the night follows.


lampScale? ​

ts
optional lampScale?: number;

Defined in: src/pixel/NightShade.ts:13

A lamp's hole in the night against the glow it is drawn with (default 1.6: the light reaches past the glow).


tint? ​

ts
optional tint?: number;

Defined in: src/pixel/NightShade.ts:9

This place's own night colour, pulled in as the night deepens (tintNight); none keeps the clock's.


tintShare? ​

ts
optional tintShare?: number;

Defined in: src/pixel/NightShade.ts:11

How far the tint takes over at full night (default 0.6).

Released under the MIT License.