style(benchmark): reduce brightness of wireframe and textured cubes
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 16 Mar 2026 21:34:01 +0000 (23:34 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Mon, 16 Mar 2026 21:34:01 +0000 (23:34 +0200)
Lower color values and alpha for more comfortable viewing in dark
environments. Makes wireframe cubes semi-transparent and dims the
glow effect on textured cubes.

src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/TexturedCubesTest.java
src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/WireframeCubesTest.java

index c89cfe6..32738e3 100644 (file)
@@ -103,17 +103,17 @@ public class TexturedCubesTest implements BenchmarkTest {
         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);
index 7020f6d..afc26c4 100644 (file)
@@ -55,7 +55,8 @@ public class WireframeCubesTest implements BenchmarkTest {
                     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);