xxxxxxxxxx
16
class Tile {
constructor(x, y, w, h) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
}
display() {
let colors = ["#a1d69b", "#c8eae4", "#eca3bf", "#e97181", "#5c76b9", "#f8d8a6", "#17b1c1", "#caa7c8", "#fab580"];
fill(random(colors));
strokeWeight(3);
stroke(0);
rect(this.x, this.y, this.w, this.h);
}
}