webdial

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

commit aee45f80d168eaca53203d7f38e7d79812ce9cd4
parent ccea56818bec3681fee96c628d47c3d42fbd4f51
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 00:13:55 -0700

Fix bug.

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

diff --git a/sun.js b/sun.js @@ -93,7 +93,7 @@ function Sun() { for (deg = 0; deg < 360; deg++) { console.debug(deg); H = deg * Math.PI / 180.0; - equ = this.ecl_to_equ(H, alt, obj); + equ = this.ecl_to_equ(H, alt, obl); x = Math.round(equ.ra * w / PI2 + x_offset) % w; y = Math.round((0.5 - equ.dec / Math.PI) * h); if (lat < alt) {