-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.pde
More file actions
30 lines (26 loc) · 738 Bytes
/
layout.pde
File metadata and controls
30 lines (26 loc) · 738 Bytes
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
void mainLayout()
{
//banner
float ratio = (float)width/banner.width;
bannerH = Math.round(banner.height*ratio);
// println(banner.width + " - " + banner.height + " -> ratio = " + ratio);
// println(width + " - " + bannerH + "|" + f);
image(banner, 0, 0, width, bannerH);
line(0, bannerH, width, bannerH);
//logo
image(logo, 0, height-logo.height);
//copyright
textSize(28); textAlign(RIGHT);
fill(0);
text("nvthai.fr@gmail.com", width, height-10);
}
void strokeText(String message, int x, int y, int textColor, int strokeColor)
{
fill(strokeColor);
text(message, x-1, y);
text(message, x, y-1);
text(message, x+1, y);
text(message, x, y+1);
fill(textColor);
text(message, x, y);
}