webdial

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

commit ec21d5a6b0a4b7defd9182986597b7631c686c6d
parent 866a58526402458406e97da7c0556f03e2287d05
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 00:20:19 -0700

Test with rgb instead of rgba

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

diff --git a/webdial.js b/webdial.js @@ -40,7 +40,8 @@ function WebDial(canvas) { var geo = sun.equ_to_geo(equ.ra, equ.dec, st); var points = sun.terminator(geo.latitude, geo.longitude, sun.sun_rst_altitude, w, h); - ctx.fillStyle = "rgba(0, 0, 0, 0.25)"; + console.debug(points); + //ctx.fillStyle = "rgba(0, 0, 0, 0.25)"; drawPoly(ctx, w, h, points); }