forked from processing/processing4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue1003.java
More file actions
33 lines (27 loc) · 820 Bytes
/
Issue1003.java
File metadata and controls
33 lines (27 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import processing.core.PApplet;
import processing.awt.PSurfaceAWT;
// Reproduction of issue #1003
// Resizeable causes crash on linux mint
public class Issue1003 extends PApplet {
public void settings(){
size(200, 200);
}
public void setup() {
surface.setTitle("Hello resize!");
surface.setResizable(true);
surface.setLocation(100, 100);
}
public void draw(){
background(frameCount % 255);
line(0, 0, width, height);
line(width, 0, 0, height);
}
public static void main(String[] passedArgs) {
String[] appletArgs = new String[]{ Issue1003.class.getName()};
if (passedArgs != null) {
PApplet.main(concat(appletArgs, passedArgs));
} else {
PApplet.main(appletArgs);
}
}
}