webdial

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

commit 0f8052c3b24862f16cf9abfa5ba0018c4f40cc5d
parent ec21d5a6b0a4b7defd9182986597b7631c686c6d
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 00:23:07 -0700

Try with stroke and black for night

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

diff --git a/webdial.js b/webdial.js @@ -17,7 +17,7 @@ function WebDial(canvas) { $.each(points, function(j, point) { ctx.lineTo(lon2x(point[0]), lat2y(point[1])); }); - ctx.fill(); + ctx.stroke(); } function drawMap(ctx, w, h) { @@ -41,7 +41,7 @@ function WebDial(canvas) { var points = sun.terminator(geo.latitude, geo.longitude, sun.sun_rst_altitude, w, h); console.debug(points); - //ctx.fillStyle = "rgba(0, 0, 0, 0.25)"; + ctx.fillStyle = "rgb(0, 0, 0)"; drawPoly(ctx, w, h, points); }