webdial

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

commit bb8af4bad6ed4cff368de8ef5d5806363b1bfed5
parent e975470e16ae6e27b532a849ab691c65528104ab
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 11:13:23 -0700

Just draw a circle for sun

Diffstat:
Mwebdial.js | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -24,14 +24,10 @@ function WebDial(canvas) { } function drawSun(ctx, x, y) { - console.debug("drawSun ", x, y); - ctx.fillStyle = "rgb(0, 0, 0)"; + ctx.strokeStyle = "rgb(192, 192, 0)"; ctx.beginPath(); - console.debug(1); - ctx.arc(x, y, 20, 0, Math.PI*2, false); - console.debug(2); - ctx.fill(); - console.debug("done"); + ctx.arc(x, y, 5, 0, Math.PI*2, false); + ctx.stroke(); } function drawNight(ctx, lon2x, lat2y) {