made new snake and index and liberary improvements

This commit is contained in:
Jürg Hallenbarter
2026-06-01 11:33:23 +02:00
parent 3d21e42d50
commit ee0d819d33
190 changed files with 3553 additions and 65 deletions

View File

@@ -7,7 +7,7 @@ let cleanedText = "";
let wordToIndex = {};
async function setup() {
trainingText = await loadStrings('assets/text/TheSubspaceEmissaryWorldConquest.txt');
trainingText = await loadStrings('assets/text/50shades.txt');
createCanvas(windowWidth, windowHeight);
background(255, 255, 230);
@@ -53,9 +53,9 @@ async function setup() {
}
}
textSize(19);
textSize(windowHeight / 18);
console.log(finalText);
text(finalText, width / 2-400, height / 2, 800, height);
text(finalText, 10, 10, windowWidth-20, windowHeight-20);
}
function splitText(text) {