From: Svjatoslav Agejenko Date: Mon, 16 Mar 2026 21:34:01 +0000 (+0200) Subject: style(benchmark): reduce brightness of wireframe and textured cubes X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=b9a32d2e5e3229e20c826658bc6af4d074bc14c7;p=sixth-3d-demos.git style(benchmark): reduce brightness of wireframe and textured cubes 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. --- diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/TexturedCubesTest.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/TexturedCubesTest.java index c89cfe6..32738e3 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/TexturedCubesTest.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/TexturedCubesTest.java @@ -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); diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/WireframeCubesTest.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/WireframeCubesTest.java index 7020f6d..afc26c4 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/WireframeCubesTest.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/benchmark/WireframeCubesTest.java @@ -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);