Texture texture = new Texture(texSize, texSize, 2);
java.awt.Graphics2D gr = texture.graphics;
- gr.setBackground(new java.awt.Color(r, g, b, 80));
+ gr.setBackground(new java.awt.Color(r, g, b, 30));
gr.clearRect(0, 0, texSize, texSize);
int glowWidth = 6;
for (int i = 0; i < glowWidth; i++) {
- int intensity = (int) (255.0 * (glowWidth - i) / glowWidth);
+ int intensity = (int) (120.0 * (glowWidth - i) / glowWidth);
java.awt.Color glowColor = new java.awt.Color(
Math.min(255, r + intensity),
Math.min(255, g + intensity),
Math.min(255, b + intensity),
- 200 - i * 30
+ 50 - i * 8
);
gr.setColor(glowColor);
gr.drawRect(i, i, texSize - 1 - 2 * i, texSize - 1 - 2 * i);
Color color = new Color(
100 + random.nextInt(155),
100 + random.nextInt(155),
- 100 + random.nextInt(155)
+ 100 + random.nextInt(155),
+ 50
);
LineAppearance appearance = new LineAppearance(5.5, color);