From 52b69817a013a872c78b2dac33a46fd7c88b94fb Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Wed, 16 Feb 2011 22:44:05 +0100 Subject: [PATCH] Clean up animatedStar.html example. --- examples/Animated/animatedStar.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/Animated/animatedStar.html b/examples/Animated/animatedStar.html index b8c26d29..3f357fb8 100644 --- a/examples/Animated/animatedStar.html +++ b/examples/Animated/animatedStar.html @@ -27,8 +27,6 @@ window.onload = function() { canvas = document.getElementById('canvas'); doc = new Doc(canvas); - console.log(doc.currentStyle); - doc.currentStyle.fillColor = 'black'; setInterval(draw, 60); } @@ -40,8 +38,7 @@ var vector = new Point(20 + 10 * i, 0).rotate(i * (360 / 35 * 2) * Math.sin(count / 150)); var l = vector.length; var path = new Path(); - // path.strokeColor = '#000000'; - //path.fillColor = i % 2 ? 'red' : 'black'; + path.fillColor = i % 2 ? 'red' : 'black'; path.closed = true; for (var j = 0; j < 32; j++) { vector = vector.rotate(45 / 4);