Skip to content

1681-engine / index / tintNight

Function: tintNight() ​

ts
function tintNight(
   day, 
   tint, 
   share?
): number;

Defined in: src/ambient/DayClock.ts:137

The night's colour pulled toward a place's own (a marsh mossy, a wood blue) as it deepens: share of the way at full night, nothing by day.

Parameters ​

ParameterTypeDefault value
dayPick<DayState, "color" | "night">undefined
tintnumber | undefinedundefined
sharenumber0.6

Returns ​

number

Released under the MIT License.