{"id":13615418,"url":"https://github.com/CodingTrain/Wave-Function-Collapse","last_synced_at":"2025-04-13T21:31:03.563Z","repository":{"id":38242295,"uuid":"484171222","full_name":"CodingTrain/Wave-Function-Collapse","owner":"CodingTrain","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-02T15:14:18.000Z","size":30774,"stargazers_count":182,"open_issues_count":15,"forks_count":61,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T16:24:31.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodingTrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T18:58:16.000Z","updated_at":"2025-03-02T15:14:22.000Z","dependencies_parsed_at":"2024-12-21T05:21:45.190Z","dependency_job_id":"d97e516e-a58f-465c-bf23-c1b2ee051f8a","html_url":"https://github.com/CodingTrain/Wave-Function-Collapse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FWave-Function-Collapse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FWave-Function-Collapse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FWave-Function-Collapse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingTrain%2FWave-Function-Collapse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingTrain","download_url":"https://codeload.github.com/CodingTrain/Wave-Function-Collapse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248786092,"owners_count":21161397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:13.430Z","updated_at":"2025-04-13T21:30:58.550Z","avatar_url":"https://github.com/CodingTrain.png","language":"JavaScript","readme":"# Wave-Function-Collapse\n\nStraight out of quantum mechanics, Wave Function Collapse is an algorithm for procedural generation of images. In this video (recorded over 3 live streams) I attempt the tiled model and explore a variety of solutions to the algorithm in JavaScript with p5.js.\n\n![GIF animation of WFC algorithm](gifs/wfc.gif)\n\n- [Wave Function Collapse video](https://thecodingtrain.com/challenges/171-wave-function-collapse)\n- [Wave Function Collapse algorithm source](https://github.com/mxgmn/WaveFunctionCollapse)\n- [Wave Function Collapse Processing forum discussion](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983)\n\n## Plan\n\n### Completed\n\n- [x] Implementation of Tile Model (see: https://youtu.be/rI_y2GAlQFM)\n\n### Corrections\n\n- [ ] Additional Rules for tiles 4 and 5\n- [ ] Explain how Computed Property Names could have been used (see: https://github.com/CodingTrain/Wave-Function-Collapse/issues/35)\n\n### Next Steps and Refactoring\n\n- [ ] Filter out redundant tiles\n- [ ] Recursive entropy reduction\n- [ ] Shannon entropy\n\n### Future work\n\n- [ ] Overlapping model\n\n## Related work\n\n- [WFC using local storage](https://editor.p5js.org/kfahn/full/iNUF-Lgdf) by @kfahn22.\n- [Model Synthesis](https://paulmerrell.org/model-synthesis/) by Paul Merrell\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodingTrain%2FWave-Function-Collapse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCodingTrain%2FWave-Function-Collapse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodingTrain%2FWave-Function-Collapse/lists"}