This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MosaicTiles = (function() { | |
var _tiles = []; | |
var generate = function(cols, rows) { | |
var _i = 0, _ii = 0; | |
_tiles = []; | |
while (_i < rows) { | |
var height = Math.floor(Math.random() * (rows / 2)) + 1; | |
_ii = 0; | |
while (_ii < cols) { | |
var width = Math.floor(Math.random() * (cols / 2)) + 1; |