Loading...
Searching...
No Matches
solar.h
Go to the documentation of this file.
1
17#pragma once
18#include <stdbool.h>
19
24
34int solar_day_progress(int rise, int set, int now);
35
47int solar_night_progress(int rise, int set, int now);
48
61int solar_next_event(int rise, int set, int now, bool *is_sunrise);
62
int solar_next_event(int rise, int set, int now, bool *is_sunrise)
Minutes until the next sun event, and which one it is.
Definition solar.c:80
int solar_day_progress(int rise, int set, int now)
How far through the daylight it is, from 0 at sunrise to 100 at sunset.
Definition solar.c:52
int solar_night_progress(int rise, int set, int now)
How far through the night it is, from 0 at sunset to 100 at the next sunrise.
Definition solar.c:68