mirror of
https://github.com/processing/processing4.git
synced 2026-01-26 09:51:09 +01:00
Clean up the footer writer section of the preprocessor for easier reading but also fix adding and looking for --full-screen which appears to have been left off at some point.
40 lines
873 B
Plaintext
40 lines
873 B
Plaintext
import processing.core.*;
|
|
import processing.data.*;
|
|
import processing.event.*;
|
|
import processing.opengl.*;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.ArrayList;
|
|
import java.io.File;
|
|
import java.io.BufferedReader;
|
|
import java.io.PrintWriter;
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
import java.io.IOException;
|
|
|
|
public class fullscreen_export extends PApplet {
|
|
|
|
int x = 0;
|
|
|
|
public void setup() {
|
|
background(0);
|
|
noStroke();
|
|
fill(102);
|
|
}
|
|
|
|
public void draw() {
|
|
rect(x, height*0.2f, 1, height*0.6f);
|
|
x = x + 2;
|
|
}
|
|
|
|
|
|
static public void main(String[] passedArgs) {
|
|
String[] appletArgs = new String[] { "--full-screen", "--bgcolor=null", "--hide-stop", "fullscreen_export" };
|
|
if (passedArgs != null) {
|
|
PApplet.main(concat(appletArgs, passedArgs));
|
|
} else {
|
|
PApplet.main(appletArgs);
|
|
}
|
|
}
|
|
}
|