diff --git a/htdocs/kleinesbuero.js b/htdocs/kleinesbuero.js index 4b9ce19..53729e4 100644 --- a/htdocs/kleinesbuero.js +++ b/htdocs/kleinesbuero.js @@ -132,16 +132,19 @@ class Wiggler { } draw() { - this.fillStyle = "white"; - this.ctx.clearRect(0, 0, 800, 600); + this.fillStyle = "#C9E6F0" + this.ctx.clearRect(0, 0, 800, 600) - this.ctx.strokeStyle = "black"; + this.ctx.strokeStyle = "white" + this.ctx.lineWidth = 3 + this.ctx.lineJoin = "round" + this.ctx.lineCap = "round" this.current.forEach(l => { - this.ctx.beginPath(); - this.ctx.moveTo(l[0][0], l[0][1]); - this.ctx.lineTo(l[1][0], l[1][1]); - this.ctx.stroke(); + this.ctx.beginPath() + this.ctx.moveTo(l[0][0], l[0][1]) + this.ctx.lineTo(l[1][0], l[1][1]) + this.ctx.stroke() }); }