places all elements LtR TtB

use placeAll(number of elements)
This commit is contained in:
O-01-67 2022-06-14 11:03:06 -04:00 committed by GitHub
parent 3a784dc941
commit 65b9187911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
zzzz204689123_array = Object.keys(elements);
function placeAll(limit=zzzz204689123_array.length) {
paused = true;
counterLol = 0;
loop1:
for(i = 1; i < height; i++) {
loop2:
for(j = 1; j < width; j++) {
if(isEmpty(j,i)) {
if(!zzzz204689123_array[counterLol] || counterLol > limit) {
break loop1;
};
createPixel(zzzz204689123_array[counterLol],j,i);
counterLol++;
} else {
break loop1;
}
};
};
paused = true;
};