add more examples
This commit is contained in:
parent
1797fe00b3
commit
bc74c5434f
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user