If there is no sunrise or sunset on a given day, the sunrise and/or sunset indicators should be hidden. Currently they are both shown together, at an arbitrary location that I believe corresponds with time zone.
In suncalc.c, lines 59-65: if (cosH > 1) {return 0;} else if (cosH < -1) {return 0;}
Add a boolean indicator here. If cosH>1, don't draw sunrise indicator. If cosH>-1, don’t draw sunset indicator.
(Maybe create a duplicate procedure with most of the same math, that has boolean output rather than float.)
If there is no sunrise or sunset on a given day, the sunrise and/or sunset indicators should be hidden. Currently they are both shown together, at an arbitrary location that I believe corresponds with time zone.
In suncalc.c, lines 59-65: if (cosH > 1) {return 0;} else if (cosH < -1) {return 0;} Add a boolean indicator here. If cosH>1, don't draw sunrise indicator. If cosH>-1, don’t draw sunset indicator. (Maybe create a duplicate procedure with most of the same math, that has boolean output rather than float.)