made new snake and index and liberary improvements
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user