forked from JesseScott/kinectTag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CP5.pde
89 lines (70 loc) · 1.34 KB
/
CP5.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//-----------------------------------------------------------------------------------------
// GUI
// COLOR + SIZE
void BRUSH_SIZE(int BrushSize) {
brushSize = (BrushSize);
}
void BRUSH_R(int BrushR) {
brushR = (BrushR);
}
void BRUSH_G(int BrushG) {
brushG = (BrushG);
}
void BRUSH_B(int BrushB) {
brushB = (BrushB);
}
void BRUSH_A(int BrushA) {
brushA = (BrushA);
}
// STYLES
void CR(boolean theFlag) {
if(theFlag == true) {
brushMode = 1;
}
}
void FW(boolean theFlag) {
if(theFlag == true) {
brushMode = 2;
}
}
void LN(boolean theFlag) {
if(theFlag == true) {
brushMode = 3;
}
}
void RB(boolean theFlag) {
if(theFlag == true) {
brushMode = 4;
}
}
void FC(boolean theFlag) {
if(theFlag == true) {
brushMode = 5;
}
}
void SP(boolean theFlag) {
if(theFlag == true) {
brushMode = 6;
}
}
void DRIPS(boolean theFlag) {
if(theFlag == true) {
dripsIO = true;
} else if (theFlag == false) {
dripsIO = false;
}
}
// CLEAR
void CLEAR(boolean theFlag) {
if(theFlag == true) {
println("ERASING");
eraseAll();
}
}
// SAVE OPTIONS
void SAVE(boolean theFlag) {
if(theFlag == true) {
saveScreen = true;
}
}
//-----------------------------------------------------------------------------------------