class Walker {
constructor(width, height) {
this.x = width / 2;
this.y = height / 2;
}
display(context) {
context.fillStyle = "crimson";
context.fillRect(this.x, this.y, 3, 3);
}
step() {
let stepX, stepY;
let r = Math.random();
const random = r < 0.01 ? d3.randomInt(-50, 51) : d3.randomInt(-1, 2);
this.x += random();
this.y += random();
}
}