Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LookDaylightKeyframes

A look’s day as keyframes: each value between two keyframes follows a monotone cubic through them in linear light, smooth, never past either keyframe, and wrapping at midnight. It replaces the engine’s colours of the key, the fill, the fog and the exposure at every hour. The engine’s arc still stands the sun and the moon, between sunriseHour and sunsetHour.

Property Type Description
exposureAdaptation? undefined The keyframes’ exposure stands in for a classic day’s.
fillGroundColor? undefined The keyframes’ colours stand in for a classic day’s.
fillSkyColor? undefined The keyframes’ colours stand in for a classic day’s.
horizonSunColor? undefined The keyframes’ colours stand in for a classic day’s.
keyframes readonly LookDaylightKeyframe[] Two or more, at different hours, in any order.
moonColor? undefined The keyframes’ colours stand in for a classic day’s.
nightExposure? undefined The keyframes’ exposure stands in for a classic day’s.
nightFillColor? undefined The keyframes’ colours stand in for a classic day’s.
sunColor? undefined The keyframes’ colours stand in for a classic day’s.
sunriseHour number The hours the sun rises and sets on the day the keyframes were chosen for, 0 to 24, the sunset after the sunrise: the engine’s arc rises at 0 and sets at 20.
sunsetHour number The hour the sun sets on that day, after sunriseHour.