forked from JesseScott/kinectTag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
APPLET.pde
47 lines (36 loc) · 1013 Bytes
/
APPLET.pde
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
34
35
36
37
38
39
40
41
42
43
44
45
46
//-----------------------------------------------------------------------------------------
// SECOND SCREEN
public class PFrame extends Frame {
public PFrame() {
setBounds(screenWidth - 100, 0, 1024, 768);
s = new secondApplet();
add(s);
removeNotify();
setUndecorated(false);
setResizable(false);
addNotify();
setLocation(screenWidth - 1024, 0);
s.init();
//show();
setVisible(true);
}
}
//-----------------------------------------
public void init() {
frame.removeNotify();
frame.setUndecorated(false);
frame.setResizable(false);
frame.addNotify();
super.init();
}
//-----------------------------------------
public class secondApplet extends PApplet {
public void setup() {
size(1024, 768);
background(0);
}
public void draw() {
image(tag, 0, 0);
}
}
//-----------------------------------------------------------------------------------------