-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.pde
106 lines (105 loc) · 4.06 KB
/
home.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
void home() {
if (home) {
//println("mouseOver: "+mouseOver);
homeCanvas.beginDraw();
homeCanvas.background(255);
homeCanvas.textAlign(CENTER);
//homeCanvas.fill(0);
//homeCanvas.stroke(1);
//homeCanvas.textFont(Head);
//homeCanvas.text("iCeleb", width/2, 80);
//homeCanvas.textFont(subTitle);
//homeCanvas.text("SERIES 1. YOU TUBE ME.", width/2, 120);
homeCanvas.image(title, width/2-185, 40);
homeCanvas.noFill();
//homeCanvas.rect(width/5,200,width/5,height/5);
homeCanvas.image(pew, width/5, 200, width/5, height/5);
//homeCanvas.rect(width/5*2,200,width/5,height/5);
homeCanvas.image(ksi, width/5*2, 200, width/5, height/5);
//homeCanvas.rect(width/5*3,200,width/5,height/5);
homeCanvas.image(js, width/5*3, 200, width/5, height/5);
//homeCanvas.rect(width/5,height/5+200,width/5,height/5);
homeCanvas.image(gm, width/5, height/5+200, width/5, height/5);
//homeCanvas.rect(width/5*2,height/5+200,width/5,height/5);
homeCanvas.image(shane, width/5*2, height/5+200, width/5, height/5);
//homeCanvas.rect(width/5*3,height/5+200,width/5,height/5);
homeCanvas.image(bb, width/5*3, height/5+200, width/5, height/5);
//homeCanvas.rect(width/5,height/5*2+200,width/5,height/5);
homeCanvas.image(gg, width/5, height/5*2+200, width/5, height/5);
//homeCanvas.rect(width/5*2,height/5*2+200,width/5,height/5);
homeCanvas.image(pom, width/5*2, height/5*2+200, width/5, height/5);
//homeCanvas.rect(width/5*3,height/5*2+200,width/5,height/5);
homeCanvas.image(nk, width/5*3, height/5*2+200, width/5, height/5);
homeCanvas.endDraw();
if (mouseX>width/5&&mouseX<width/5*2&&mouseY>200&&mouseY<height/5+200) {
mouseOver=1;
//println("PewDiePie");
}
if (mouseX>width/5*2 && mouseX<width/5*3 && mouseY>200 && mouseY<height/5+200) {
mouseOver= 2;
//println("KSI");
}
if (mouseX>width/5*3 && mouseX<width/5*4 && mouseY>200 && mouseY<height/5+200) {
mouseOver=3;
//println("Jeffree");
}
if (mouseX>width/5 && mouseX<width/5*2 && mouseY>height/5+200 && mouseY<height/5+370) {
mouseOver=4;
//println("German");
}
if (mouseX>width/5*2 && mouseX<width/5*3 && mouseY>height/5+200 && mouseY<height/5+370) {
mouseOver=5;
//println("Shane");
}
if (mouseX>width/5*3 && mouseX<width/5*4 && mouseY>height/5+200 && mouseY<height/5+370) {
mouseOver=6;
//println("BB");
}
if (mouseX>width/5 && mouseX<width/5*2 && mouseY>height/5*2+200 && mouseY<height/5*2+370) {
mouseOver=7;
//println("Gigi");
}
if (mouseX>width/5*2 && mouseX<width/5*3 && mouseY>height/5*2+200 && mouseY<height/5*2+370) {
mouseOver=8;
//println("SoftPomz");
}
if (mouseX>width/5*3 && mouseX<width/5*4 && mouseY>height/5*2+200 && mouseY<height/5*2+370) {
mouseOver=9;
//println("Nikkie");
}
///
image(homeCanvas, 0, 0);
}
}
void setupNewUI() {
//fullScreen(); //full screen size is 1440x900
textAlign(CENTER);
Head = createFont("SanFranciscoDisplay-Bold.otf", 32);
subTitle = createFont("SanFranciscoDisplay-Regular.otf", 12);
canvas = createGraphics(w/2, h/2,P3D);
homeCanvas = createGraphics(w, h);
fill(0);
//myMovie = new Movie(this, "../NK8_trim.mp4");
// put after cam.start to get it play at the same time.
qBtn = loadImage("quitBtn.png");
rBtn = loadImage("reSetBtn.png");
loopBtn = loadImage("loopBtn.png");
light = loadImage("redLight.png");
js=loadImage("thumbnails/JS.jpg");
ksi=loadImage("thumbnails/ksi.jpg");
nk=loadImage("thumbnails/nk.jpg");
bb=loadImage("thumbnails/BB.jpg");
gm=loadImage("thumbnails/German.jpg");
gg=loadImage("thumbnails/gg.jpg");
pew=loadImage("thumbnails/pew.jpg");
pom=loadImage("thumbnails/pomz.jpg");
shane=loadImage("thumbnails/shane.jpg");
title=loadImage("cNNtitle.png");
///
//videoScreen buttons
Btn01=loadImage("Btn-01.png");
Btn02=loadImage("Btn-02.png");
Btn03=loadImage("Btn-03.png");
Btn04=loadImage("Btn-04.png");
Btn05=loadImage("Btn-05.png");
}