Processing Forum
And like the purpose is for the web, I try to export with processing.js but its looks like the variable displayWidth and displayHeight doesn't work. (I try to display them in a text(); ). idem with : ** size(displayWidth, displayHeight);** it don't give a big sketch. (tried with firefox & chrome).
- void setup(){
- size(400, 400);
- background(0);
- text("press a key to full screen", width/2, height/2);
- }
- void draw(){
- }
- void keyPressed(){
- size(displayWidth, displayHeight);
- background(0);
- text("full screen on", width/2, height/2);
- }
thanks
void setup() {
String[] isbn = loadStrings("../listeIsbn.txt"); // *listeIsbn.txt* contain 3 lines
for(int i=0 ; i< isbn.length ; i++){
output = createWriter("export.txt") ; // only one line in the .txt export
output.println(isbn[i]) ;
output.flush();
output.close();
}
}