Changes wiggler color
This commit is contained in:
parent
eb1e44f533
commit
86d0df4ff3
1 changed files with 10 additions and 7 deletions
|
@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue