add more examples

This commit is contained in:
Morten Andersson 2025-06-10 13:41:51 +02:00
parent 1797fe00b3
commit bc74c5434f
2 changed files with 10 additions and 3 deletions

View File

@ -61,8 +61,8 @@
<option value="4">4</option>
</select>
<label
><input type="checkbox" id="randomSelectionCheckbox" /> Random Selection
for Collapse</label
><input type="checkbox" id="randomSelectionCheckbox" checked="true" />
Random Selection for Collapse</label
>
<label
><input type="checkbox" id="enableRotationsCheckbox" /> Enable

View File

@ -1,7 +1,14 @@
// Main script (script.js)
(function () {
//more samples at https://github.com/mxgmn/WaveFunctionCollapse/tree/master/samples
let currentImageUrl =
'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/Flowers.png';
'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/LessRooms.png';
//'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/Fabric.png'; //fails!
//'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/Dungeon.png';
//'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/ColoredCity.png';
//'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/Disk.png';
//'https://raw.githubusercontent.com/mxgmn/WaveFunctionCollapse/master/samples/Flowers.png';
// To test with the uploaded image, you'd change the URL to 'input_file_0.png'
// For now, let's assume Flowers.png or a similar valid, varied image URL.
// currentImageUrl = 'input_file_0.png'; // If you want to test with the local file (requires serving)