From 86d0df4ff31d65e3b6ee268e5e2695bc5e916df0 Mon Sep 17 00:00:00 2001 From: Stefan Schallerl Date: Tue, 17 Dec 2024 13:43:13 +0100 Subject: [PATCH] Changes wiggler color --- htdocs/kleinesbuero.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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() }); }