webdial

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

commit 57d2f9cb28869d7b8301a118c4cf38ac065f78b1
parent 42e6c4840cdf113a2b038b0ab4d3cdb25ca4ce36
Author: Sean Lynch <seanl@literati.org>
Date:   Wed,  7 Sep 2011 23:53:42 -0700

Oops

Diffstat:
Mwebdial.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -40,9 +40,8 @@ function WebDial(canvas) { var geo = Sun.equ_to_geo(ra, dec, st); var points = Sun.terminator(geo.latitude, geo.longitude, Sun.sun_rst_altitude, w, h); + console.debug(points); ctx.beginPath(); - var lastPoint = points[points.length-1]; - ctx.moveTo(lon2); drawPoly(ctx, w, h, points); }