-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_setup_menu.pde
More file actions
85 lines (80 loc) · 3.24 KB
/
Copy pathtest_setup_menu.pde
File metadata and controls
85 lines (80 loc) · 3.24 KB
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
/* @pjs preload="data/hdw-winter-wallpaper-abstract-art-13.jpg"; */
/* @pjs font="data/Algerian-30.ttf"; */
/* @pjs font="data/AgencyFB-Reg-20.ttf"; */
/* @pjs font="data/BerlinSansFBDemi-Bold-20.ttf"; */
void test_setup_menu() {
// -- Set Window Resolution, Quality --
size(1024, 600);
smooth();
// -- Load all Data required --
fntHeading = loadFont("Algerian-30.vlw");
fntAuthor = loadFont("AgencyFB-Reg-20.vlw");
fntButton = loadFont("BerlinSansFBDemi-Bold-20.vlw");
bckImg = loadImage("hdw-winter-wallpaper-abstract-art-13.jpg");
// -- Create the Background --
image(bckImg, 0, 0, width, height);
textAlign(LEFT);
textFont(fntHeading, 0.0215*width);
text("Fourier Transform Demo", 0.02*width, 0.0417*height);
textAlign(RIGHT);
textFont(fntAuthor, 0.01365*width);
text("-by Electronics and Communication Engineering Department,\nNational Institute of Technology, Rourkela", 0.98*width, 0.025*height);
// -- Create Buttons --
// Graphic: Buttions
stroke(0, 0, 0, 60);
strokeWeight(0.015*width);
strokeJoin(ROUND);
strokeCap(ROUND);
line(0.135*width, 0.95*height, 0.145*width, 0.95*height);
line(0.235*width, 0.95*height, 0.245*width, 0.95*height);
line(0.335*width, 0.95*height, 0.345*width, 0.95*height);
line(0.655*width, 0.95*height, 0.665*width, 0.95*height);
line(0.755*width, 0.95*height, 0.765*width, 0.95*height);
line(0.855*width, 0.95*height, 0.865*width, 0.95*height);
// Graphic: Mid-Arrow (Reversible)
stroke(160, 220, 180, 180);
strokeWeight(0.005*width);
line(0.47*width, 0.5*height, 0.53*width, 0.5*height);
line(0.47*width, 0.5*height, 0.48*width, 0.49*height);
line(0.47*width, 0.5*height, 0.48*width, 0.51*height);
line(0.53*width, 0.5*height, 0.52*width, 0.49*height);
line(0.53*width, 0.5*height, 0.52*width, 0.51*height);
// Graphic: Power Buttons
textAlign(CENTER);
textFont(fntAuthor, 0.01365*width );
strokeWeight(0.002*width);
stroke(150, 150, 255, 200);
fill(200, 200, 255, 200);
ellipse(0.47*width, 0.03*height, 0.02*width, 0.034*height);
ellipse(0.50*width, 0.03*height, 0.02*width, 0.034*height);
stroke(255, 50, 50, 200);
fill(255, 100, 100, 200);
ellipse(0.53*width, 0.03*height, 0.02*width, 0.034*height);
// Text: Buttons
fill(0, 0, 0, 120);
textAlign(CENTER);
textFont(fntButton, 0.01365*width );
text("real", 0.14*width, 0.985*height);
text("imaginary", 0.24*width, 0.985*height);
text("absolute", 0.34*width, 0.985*height);
text("real", 0.66*width, 0.985*height);
text("imaginary", 0.76*width, 0.985*height);
text("absolute", 0.86*width, 0.985*height);
// Text: Mid-Arrow (Reversible)
fill(255, 255, 255, 220);
text("Fourier", 0.5*width, 0.48*height);
text("transform", 0.5*width, 0.54*height);
// Text: Power Buttons
text("?", 0.471*width, 0.038*height);
text("i", 0.500*width, 0.038*height);
text("X", 0.530*width, 0.038*height);
save("fourier-transform-demo-main-screen.png");
// -- Create 4 plots --
// stroke(0, 0, 0);
// strokeWeight(1);
// fill(255, 255, 255, 120);
// rect(0.02*width, 0.08*height, 0.44*width, 0.40*height);
// rect(0.02*width, 0.52*height, 0.44*width, 0.40*height);
// rect(0.54*width, 0.08*height, 0.44*width, 0.40*height);
// rect(0.54*width, 0.52*height, 0.44*width, 0.40*height);
}