webdial

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

commit c950d075b36eb29eb9f914b7d62e409b098f0bb5
parent a79413f280427e08ee11f0b61eaac9c370d1c8d2
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 20:31:52 -0700

Try terminator without the shift

Diffstat:
Msun.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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