This commit is contained in:
赵鑫 2022-12-11 03:30:43 +08:00
parent 64eae6bdd1
commit b2534c7efd

View File

@ -174,10 +174,10 @@ class Vehicle {
// return false; // return false;
// } // }
drawPath() { drawPath(color = 128) {
push(); push();
noFill(); noFill();
stroke(50); stroke(color);
strokeWeight(1); strokeWeight(1);
if (this.path.length >= 10240) this.path.shift(); if (this.path.length >= 10240) this.path.shift();
beginShape(); beginShape();