_calc_corona_radius(now, day_info){
        if(now < day_info.sunset_date &&
            now > day_info.sunrise_date){
            var now_fraction_of_day = DateUtils.now_fraction_of_day(now,day_info);
            var sunset_fraction = (day_info.sunset_date.getTime() - day_info.day_start.getTime())/DateUtils.DAY_MILLIS;
            var now_fraction_from_midday =
                1 - Math.abs(now_fraction_of_day-0.5)/(sunset_fraction-0.5);
            return CORONA_RADIUS * now_fraction_from_midday;
        } else {
            return 0;
        }
    }
// The corona is larger the closer you are to solar noon
The corona is larger the closer you are to solar noon
The corona is larger the closer you are to solar noon
_calc_corona_radius(now, day_info){
        if(now < day_info.sunset_date &&
            now > day_info.sunrise_date){
            var now_fraction_of_day = DateUtils.now_fraction_of_day(now,day_info);
            var sunset_fraction = (day_info.sunset_date.getTime() - day_info.day_start.getTime())/DateUtils.DAY_MILLIS;
            var now_fraction_from_midday =
                1 - Math.abs(now_fraction_of_day-0.5)/(sunset_fraction-0.5);
            return CORONA_RADIUS * now_fraction_from_midday;
        } else {
            return 0;
        }
    }
_calc_corona_radius ( now , day_info ) { if ( now < day_info . sunset_date && now > day_info . sunrise_date ) { var now_fraction_of_day = DateUtils . now_fraction_of_day ( now , day_info ) ; var sunset_fraction = ( day_info . sunset_date . getTime ( ) - day_info . day_start . getTime ( ) ) / DateUtils . DAY_MILLIS ; var now_fraction_from_midday = 1 - Math . abs ( now_fraction_of_day - 0.5 ) / ( sunset_fraction - 0.5 ) ; return CORONA_RADIUS * now_fraction_from_midday ; } else { return 0 ; } }
The corona is larger the closer you are to solar noon
The corona is larger the closer you are to solar noon