1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| final void draw_txt(String s, int bc, int fc, int x, int y, int a) {
g.setFont(f);
g.setColor(bc);
g.drawString(s, x-1, y-1, a);
g.drawString(s, x-1, y, a);
g.drawString(s, x-1, y+1, a);
g.drawString(s, x, y-1, a);
g.drawString(s, x, y+1, a);
g.drawString(s, x+1, y-1, a);
g.drawString(s, x+1, y, a);
g.drawString(s, x+1, y+1, a);
g.setColor(fc);
g.drawString(s, x, y, a);
}
// Только снизу-справа
final void draw_txt(Graphics g, int bc, int fc, String s, int x, int y, int a) {
g.setFont(f);
g.setColor(bc);
g.drawString(s, x+1, y+1, a);
g.setColor(fc);
g.drawString(s, x, y, a);
}
|