add more examples
This commit is contained in:
parent
1797fe00b3
commit
bc74c5434f
@ -61,8 +61,8 @@
|
|||||||
<option value="4">4</option>
|
<option value="4">4</option>
|
||||||
</select>
|
</select>
|
||||||
<label
|
<label
|
||||||
><input type="checkbox" id="randomSelectionCheckbox" /> Random Selection
|
><input type="checkbox" id="randomSelectionCheckbox" checked="true" />
|
||||||
for Collapse</label
|
Random Selection for Collapse</label
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
><input type="checkbox" id="enableRotationsCheckbox" /> Enable
|
><input type="checkbox" id="enableRotationsCheckbox" /> Enable
|
||||||
|
|||||||
@ -1,7 +1,14 @@
|
|||||||
// Main script (script.js)
|
// Main script (script.js)
|
||||||
(function () {
|
(function () {
|
||||||
|
//more samples at https://github.com/mxgmn/WaveFunctionCollapse/tree/master/samples
|
||||||
let currentImageUrl =
|
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'
|
// 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.
|
// 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)
|
// 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