Use String variables to draw something
in
Programming Questions
•
4 months ago
Hello im trying to use a bunch of numbers being read from a .txt file to draw something (line,rect). Ive got them reading out in println but im a bit lost when it comes to making them into variables or data that can be used to draw something. Heres the code:
BufferedReader reader;
String line;
void setup() {
size(400,400);
String [] lines = loadStrings("points.txt");
println(lines);
}
void draw(){
}
Any tips would be greatly appreciated.
BufferedReader reader;
String line;
void setup() {
size(400,400);
String [] lines = loadStrings("points.txt");
println(lines);
}
void draw(){
}
Any tips would be greatly appreciated.
1