https://github.com/shiffman/LearningProcessing
String[] words;
int index=1;
void setup(){
size(600,400);
background(0);
//String entireplay=join(lines, " ");
String[] lines=loadStrings("C:/Users/.../.../##.txt");
String entireplay=join(lines, " ");
//printArray(lines);
println(entireplay);
words=splitTokens(entireplay, ",.;:? ");
printArray(words);
frameRate(5);
}
void draw(){
background(0);
textSize(64);
textAlign(CENTER);
//text(words[index], 50+i*100,200);
text(words[index], width/2,height/2);
index++;
}
int index=1;
void setup(){
size(600,400);
background(0);
//String entireplay=join(lines, " ");
String[] lines=loadStrings("C:/Users/.../.../##.txt");
String entireplay=join(lines, " ");
//printArray(lines);
println(entireplay);
words=splitTokens(entireplay, ",.;:? ");
printArray(words);
frameRate(5);
}
void draw(){
background(0);
textSize(64);
textAlign(CENTER);
//text(words[index], 50+i*100,200);
text(words[index], width/2,height/2);
index++;
}
No hay comentarios:
Publicar un comentario