Wave-Function-Collapse icon indicating copy to clipboard operation
Wave-Function-Collapse copied to clipboard

Why keep images in tiles graphic array?

Open Deg42 opened this issue 3 years ago • 1 comments

By this time, there are duplicated tiles, one as an image and one as graphic:

  const initialTileCount = tiles.length;
  for (let i = 0; i < initialTileCount; i++) {
    let tempTiles = [];
    for (let j = 0; j < 4; j++) {
      tempTiles.push(tiles[i].rotate(j));
    }
    tempTiles = removeDuplicatedTiles(tempTiles);
    tiles = tiles.concat(tempTiles);
  }
  console.log(tiles.length);

Example: Screnshot

Deg42 avatar Jul 11 '22 10:07 Deg42

I should apply the frequency counting and entropy calculation that is now in the new Overlapping model examples to the Tiled model!

shiffman avatar Jan 26 '25 04:01 shiffman