Skip to content

Commit d5b31c9

Browse files
authored
Merge pull request #33 from CodingTrain/readme-update
add GIF to readme etc
2 parents 35d63a8 + 4515adc commit d5b31c9

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,30 @@ Straight out of quantum mechanics, Wave Function Collapse is an algorithm for pr
44

55
![GIF animation of WFC algorithm](gifs/wfc.gif)
66

7-
* [Wave Function Collapse video](https://thecodingtrain.com/challenges/171-wave-function-collapse)
8-
* [Wave Function Collapse algorithm source](https://github.com/mxgmn/WaveFunctionCollapse)
9-
* [Wave Function Collapse Processing forum discussion](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983)
10-
7+
- [Wave Function Collapse video](https://thecodingtrain.com/challenges/171-wave-function-collapse)
8+
- [Wave Function Collapse algorithm source](https://github.com/mxgmn/WaveFunctionCollapse)
9+
- [Wave Function Collapse Processing forum discussion](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983)
1110

1211
## Plan
1312

1413
### Completed
14+
1515
- [x] Implementation of Tile Model (see: https://youtu.be/rI_y2GAlQFM)
1616

1717
### Corrections
18+
1819
- [ ] Additional Rules for tiles 4 and 5
1920

2021
### Next Steps and Refactoring
22+
2123
- [ ] Filter out redundant tiles
2224
- [ ] Recursive entropy reduction
2325
- [ ] Shannon entropy
2426

2527
### Future work
28+
2629
- [ ] Overlapping model
2730

2831
## Related work
2932

30-
* [WFC using local storage](https://editor.p5js.org/kfahn/full/iNUF-Lgdf) by @kfahn22.
33+
- [WFC using local storage](https://editor.p5js.org/kfahn/full/iNUF-Lgdf) by @kfahn22.

gifs/wfc.gif

10.3 MB
Loading

sketch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const tileImages = [];
33

44
let grid = [];
55

6-
const DIM = 20;
6+
const DIM = 25;
77

88
function preload() {
99
// const path = 'rail';
@@ -27,7 +27,7 @@ function removeDuplicatedTiles(tiles) {
2727
}
2828

2929
function setup() {
30-
createCanvas(600, 600);
30+
createCanvas(400, 400);
3131
//randomSeed(15);
3232

3333
// tiles[0] = new Tile(tileImages[0], ['AAA', 'AAA', 'AAA', 'AAA']);
@@ -211,4 +211,4 @@ function draw() {
211211
}
212212

213213
grid = nextGrid;
214-
}
214+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)