- var y = i * cellHeight;
- for (var ii = 0; ii < columns; ii++) {
- world.push(new cell(x, y, cellWidth, cellHeight));
- x += cellWidth;
- Math.random() > .5 ? world[ii].revive() : world[ii].kill();
+ var y = i * this.cellHeight;
+ for (var ii = 0; ii < this.columns; ii++) {
+ world.push(new cell(x, y, this.cellWidth, this.cellHeight));
+ x += this.cellWidth;
+ if (this.blank) { world[ii].kill(); }
+ else { Math.random() > .5 ? world[ii].revive() : world[ii].kill(); }