Hi guys,
I’m going crazy on something really stupid, but I just can not solve it.
I would like to wrap after I’ve found a specific character.
the code I am using is this:
String[] lines;
String randText;
void setup() {
size(1280, 720);
lines = loadStrings("howl.txt");
background(0);
frameRate(1);
}
void draw() {
//fill(0, 255);
//rect(0, 0, width, height);
//background(0);
randText=lines[frameCount].toUpperCase();
for (int k=0; k<randText.length(); k++) {
if (str(randText.charAt(k)).equals(" ")==true) {
//randText.charAt(k)=; here i want to go to the next line
}
}
text(randText, 10, frameCount*12);
}