-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.pde
executable file
·73 lines (66 loc) · 2.43 KB
/
graphics.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
/* Color Mixer
by electricmango
https://electricmango.github.io
graphics.pde
Text display and more...
*/
Textlabel colorTextr;
Textlabel colorTextg;
Textlabel colorTextb;
Textlabel colorTexta;
Textlabel hexText;
Textlabel hex8Text;
Textlabel aboutText;
Textlabel aboutTitle;
PFont Monaco14 = createFont("Monaco",14,false);
PFont Monaco24 = createFont("Monaco",24,false);
PFont Monaco48 = createFont("Monaco",48,false);
public void textinit(){
//Textlabels
colorTextr = cp5.addTextlabel("colorTextr")
.setPosition(200,200)
.setFont(Monaco24)
.setText("Red\n" + r)
;
colorTextg = cp5.addTextlabel("colorTextg")
.setPosition(300,200)
.setFont(Monaco24)
.setText("Green\n" + g)
;
colorTextb = cp5.addTextlabel("colorTextb")
.setPosition(400,200)
.setFont(Monaco24)
.setText("Blue\n" + b)
;
colorTexta = cp5.addTextlabel("colorTexta")
.setPosition(500,200)
.setFont(Monaco24)
.setText("Alpha\n" + a)
;
hexText = cp5.addTextlabel("hexText")
.setPosition(200,300)
.setFont(Monaco24)
.setText("Hexadecimal [RGB]\n#808080")
;
hex8Text = cp5.addTextlabel("hex8Text")
.setPosition(200,400)
.setFont(Monaco24)
.setText("Hexadecimal [aRGB]\n0xFF808080")
;
}
public void aboutTextinit(){
aboutTitle = cp5.addTextlabel("title")
.setPosition(125,50)
.setFont(Monaco48)
.setTab("About")
.setText("Color Mixer")
.setColorValue(cp.getColorValue())
;
aboutText = cp5.addTextlabel("text")
.setPosition(200,200)
.setWidth(550)
.setFont(Monaco14)
.setTab("About")
.setText("Color is too, an art.\nThis application makes it easier to make colors.\nColor Mixer is licensed under the GNU General\nPublic License.\n\nUse it, mod it, share it (as open source).\nJust don't change the license.\n\nv 3.1.1\nLast Updated 1.27.15\n\ngithub.com/electricmango/Color-Mixer")
;
}