Changes wiggler color

This commit is contained in:
Stefan Schallerl 2024-12-17 13:43:13 +01:00
parent eb1e44f533
commit 86d0df4ff3

View file

@ -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()
});
}