Convenience utility to generate time of day state from a decimal hour.
Automatically calculates sun angle, intensity, ambient light, and star visibility based on a 24-hour cycle.
Hour of the day (0-24, where 12.0 is noon).
Fully populated TimeOfDayState.
const morning = createTimeOfDay(8.5); // 8:30 AMconst midnight = createTimeOfDay(0); // Midnight Copy
const morning = createTimeOfDay(8.5); // 8:30 AMconst midnight = createTimeOfDay(0); // Midnight
Convenience utility to generate time of day state from a decimal hour.
Automatically calculates sun angle, intensity, ambient light, and star visibility based on a 24-hour cycle.