Add support for the blue hour e.g., blueHour and blueHourEnd
Morning magic hours Blue hour (from -6° to -4°) Golden hour (from -4° to 6°)
Evening magic hours Golden hour (from 6° to -4°) Blue hour (from -4° to -6°)
Reference: http://www.photopills.com/articles/understanding-golden-hour-blue-hour-and-twilights
Good suggestion, thanks!
Did u calculated the blue hour in your lib ? :)
In my variation (and I believe it’s correct), the blue hour is between -4° and -8°, see https://en.wikipedia.org/wiki/Blue_hour.
Here’s how I used it:
var times = SunCalc.times = [
[ 6, 'goldenHourEnd', 'goldenHour' ],
[ -0.3, 'sunriseEnd', 'sunsetStart' ],
[-0.833, 'sunrise', 'sunset' ],
[ -4, 'blueHourDawnEnd', 'blueHourDusk' ],
[ -6, 'dawn', 'dusk' ],
[ -8, 'blueHourDawn', 'blueHourDuskEnd' ],
[ -12, 'nauticalDawn', 'nauticalDusk' ],
[ -18, 'nightEnd', 'night' ]
];
Unfortunately, it makes some calculations a little more difficult because the blue hour stretches within the civil and nautical twilight phases.