webdial

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

commit 3f947b7593566b2f74d7f42cdc42f6633e25b16a
parent 05a77823be986a0e0f9de9558ab2615819866b72
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 08:48:41 -0700

Close the shape.

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

diff --git a/webdial.js b/webdial.js @@ -17,6 +17,7 @@ function WebDial(canvas) { for (i = 1; i < points.length; i++ ) { ctx.lineTo(lon2x(points[i][0]), lat2y(points[i][1])); } + ctx.closePath(); ctx.fill(); } @@ -51,7 +52,7 @@ function WebDial(canvas) { var ctx = canvas[0].getContext("2d"); canvas[0].width = w; canvas[0].height = h; - //drawMap(ctx, w, h); + drawMap(ctx, w, h); drawNight(ctx, w, h); }