webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit a41b7e1c6840b87ce9b04e524c1386970c989107
parent c950d075b36eb29eb9f914b7d62e409b098f0bb5
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 20:34:26 -0700

Try rotating 180 degrees

Diffstat:
Msun.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sun.js b/sun.js @@ -83,7 +83,7 @@ function Sun() { for (deg = 0; deg < 360; deg++) { H = deg * Math.PI / 180.0; equ = this.ecl_to_equ(H, alt, obl); - x = equ.ra * 180.0 / Math.PI; + x = (180 + equ.ra * 180.0 / Math.PI) % 360; y = (0.5 - equ.dec / Math.PI) * 180; points.push([x,y]); px = x;