caarmen / SunriseSunset

Java utility to calculate the time of sunrise and sunset for a given location.
GNU Lesser General Public License v2.1
48 stars 8 forks source link

Add support for magic hours #20

Closed ghost closed 7 years ago

ghost commented 7 years ago

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

caarmen commented 7 years ago

Not sure what timezone you're in, but over here in UTC+1, it's 2017!!!! Happy New Year!!!!

2017 will be the year to #MakeSunriseSunsetGreatAgain!!!

ghost commented 7 years ago

By Atlantic City, NJ... Happy New Year!

caarmen commented 7 years ago

I don't think I'll integrate this into the core library. It's too specific of an application. It could be part of the examples possibly.

ghost commented 7 years ago

It's very popular with photographers... thought it would be the same as the others...

public enum DayPeriod {
    DAY,
    CIVIL_TWILIGHT,
    NAUTICAL_TWILIGHT,
    ASTRONOMICAL_TWILIGHT,
            GOLDEN_HOUR,
            BLUE_HOUR,
    NIGHT
}
caarmen commented 7 years ago

Transfered to https://github.com/caarmen/SunriseSunsetPlus/issues/2