webdial

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

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

Fix alpha

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

diff --git a/webdial.js b/webdial.js @@ -31,7 +31,6 @@ function WebDial(canvas) { } function drawNight(ctx, w, h) { - ctx.fillStyle = "rgba(0, 0, 0, 128)"; var jd = sun.cal_to_jd(new Date()); var epsilon = sun.obliquity(jd); var geometric_lon = sun.longitude_radius_low(jd).longitude; @@ -41,6 +40,7 @@ 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)"; drawPoly(ctx, w, h, points); }