webdial

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

commit 94b1ed8e2c5a3d0211c4d56c391793a92c8579eb
parent a41b7e1c6840b87ce9b04e524c1386970c989107
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 20:36:54 -0700

Rotate latitude as well

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

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