Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added some more visualization archetypes

Michael Peter Christen725b41550cc9
diff --git a/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java b/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java
new file mode 100644
index 000000000..e201de39b
--- /dev/null
+++ b/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java
@@ -0,0 +1,152 @@
+/**
+ * CrtHeatmapConsolePlotter
+ * Displays a heatmap with CRT-style scanlines and neon legends.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Random;
+
+public class CrtHeatmapConsolePlotter extends RasterPlotter {
+
+ private final double[][] values;
+ private final String[] rowLabels;
+ private final String[] colLabels;
+
+ public CrtHeatmapConsolePlotter(final int width, final int height, final double[][] values, final String[] rowLabels, final String[] colLabels) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000010);
+ this.values = values;
+ this.rowLabels = rowLabels;
+ this.colLabels = colLabels;
+ }
+
+ public void render() {
+ clear();
+ drawScanlines();
+ drawHeatmap();
+ drawLegend();
+ }
+
+ private void drawScanlines() {
+ setColor(0x001020);
+ for (int y = 0; y < getHeight(); y += 3) line(0, y, getWidth(), y, 18);
+ }
+
+ private void drawHeatmap() {
+ final int rows = values.length;
+ final int cols = values[0].length;
+ final int padding = 50;
+ final int cellWidth = (getWidth() - padding * 2) / cols;
+ final int cellHeight = (getHeight() - padding * 2) / rows;
+ for (int r = 0; r < rows; r++) {
+ for (int c = 0; c < cols; c++) {
+ final double v = values[r][c];
+ final long color = colorForValue(v);
+ final int x = padding + c * cellWidth;
+ final int y = padding + r * cellHeight;
+ fillCell(x, y, cellWidth - 2, cellHeight - 2, color, v);
+ }
+ }
+ // grid
+ setColor(0x002F4F);
+ for (int r = 0; r <= rows; r++) {
+ final int y = padding + r * cellHeight;
+ line(padding, y, padding + cols * cellWidth, y, 30);
+ }
+ for (int c = 0; c <= cols; c++) {
+ final int x = padding + c * cellWidth;
+ line(x, padding, x, padding + rows * cellHeight, 30);
+ }
+ // labels
+ setColor(0x00FFDD);
+ for (int r = 0; r < rowLabels.length; r++) {
+ PrintTool.print(this, padding - 8, padding + r * cellHeight + cellHeight / 2, 0, rowLabels[r], 1, 65);
+ }
+ for (int c = 0; c < colLabels.length; c++) {
+ PrintTool.print(this, padding + c * cellWidth + cellWidth / 2, padding - 12, 0, colLabels[c], 0, 65);
+ }
+ }
+
+ private long colorForValue(final double value) {
+ final double clamped = Math.max(0.0, Math.min(1.0, value));
+ final int r = (int) (clamped * 255);
+ final int g = (int) ((1.0 - Math.abs(clamped - 0.5) * 2) * 220);
+ final int b = (int) ((1.0 - clamped) * 255);
+ return (r << 16) | (g << 8) | b;
+ }
+
+ private void fillCell(final int x, final int y, final int width, final int height, final long color, final double value) {
+ final long base = darken(color, 0.4d);
+ for (int yy = 0; yy < height; yy++) {
+ final double lineFactor = 0.8 + 0.2 * Math.sin(yy / 3.0);
+ setColor(lighten(base, lineFactor));
+ line(x, y + yy, x + width, y + yy, 60);
+ }
+ setColor(lighten(color, 1.6d));
+ line(x, y, x + width, y, 80);
+ line(x, y + height, x + width, y + height, 40);
+ line(x, y, x, y + height, 40);
+ line(x + width, y, x + width, y + height, 40);
+ setColor(0x001010);
+ PrintTool.print(this, x + width / 2, y + height / 2, 0, String.format("%3.0f", value * 100), 0, 55);
+ }
+
+ private void drawLegend() {
+ final int x = getWidth() - 60;
+ final int y = 50;
+ setColor(0x00FFCC);
+ PrintTool.print(this, x, y - 16, 90, "TEMP", -1, 70);
+ for (int i = 0; i <= 8; i++) {
+ final double v = i / 8.0;
+ final long color = colorForValue(v);
+ setColor(color);
+ line(x - 12, y + i * 12, x, y + i * 12, 40);
+ setColor(0x00EEFF);
+ PrintTool.print(this, x - 16, y + i * 12, 0, String.format("%2d", (int) (v * 100)), 1, 50);
+ }
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File outDir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!outDir.exists()) outDir.mkdirs();
+ final int rows = 6;
+ final int cols = 8;
+ final double[][] values = new double[rows][cols];
+ final Random random = new Random(0xC0FFEE);
+ for (int r = 0; r < rows; r++) {
+ for (int c = 0; c < cols; c++) {
+ values[r][c] = random.nextDouble();
+ }
+ }
+ final String[] rowLabels = {"NORTH", "NE", "EAST", "SE", "SOUTH", "CORE"};
+ final String[] colLabels = {"00", "03", "06", "09", "12", "15", "18", "21"};
+ final CrtHeatmapConsolePlotter plotter = new CrtHeatmapConsolePlotter(720, 420, values, rowLabels, colLabels);
+ plotter.render();
+ final File out = new File(outDir, "crt_heatmap.png");
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save heatmap", e);
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/DataSpindleCarouselPlotter.java b/source/net/yacy/visualization/DataSpindleCarouselPlotter.java
new file mode 100644
index 000000000..32b5d0461
--- /dev/null
+++ b/source/net/yacy/visualization/DataSpindleCarouselPlotter.java
@@ -0,0 +1,110 @@
+/**
+ * DataSpindleCarouselPlotter
+ * Renders stacked rotating rings as a data spindle HUD element.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class DataSpindleCarouselPlotter extends RasterPlotter {
+
+ private final int centerX;
+ private final int centerY;
+ private final int[] ringRadii;
+ private final long[] ringColors;
+
+ public DataSpindleCarouselPlotter(final int width, final int height) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000014);
+ this.centerX = width / 2;
+ this.centerY = height / 2;
+ this.ringRadii = new int[]{40, 70, 100, 130};
+ this.ringColors = new long[]{0x00FFCC, 0x66FF99, 0xFF66CC, 0x66AAFF};
+ }
+
+ public void renderFrame(final int frame) {
+ clear();
+ drawBackground();
+ for (int i = 0; i < ringRadii.length; i++) {
+ drawRing(i, frame);
+ }
+ drawCenter(frame);
+ drawOverlay(frame);
+ }
+
+ private void drawBackground() {
+ setColor(0x001A2C);
+ for (int y = 0; y < getHeight(); y += 6) line(0, y, getWidth(), y, 12);
+ }
+
+ private void drawRing(final int index, final int frame) {
+ final int radius = ringRadii[index];
+ final long color = ringColors[index];
+ final double rotation = frame * (index + 1) * 7.0d;
+ setColor(darken(color, 0.4d));
+ arc(centerX, centerY, radius - 4, radius + 4, 40);
+ setColor(color);
+ for (int spoke = 0; spoke < 6; spoke++) {
+ final double angle = rotation + spoke * 60.0d;
+ arcLine(centerX, centerY, radius - 6, radius + 6, angle, true, null, null, -1, -1, -1, false);
+ final int dotX = centerX + (int) (Math.cos(Math.toRadians(angle)) * radius);
+ final int dotY = centerY - (int) (Math.sin(Math.toRadians(angle)) * radius);
+ dot(dotX, dotY, 4, true, 85);
+ }
+ setColor(lighten(color, 1.3d));
+ arc(centerX, centerY, radius - 1, radius + 1, 90);
+ }
+
+ private void drawCenter(final int frame) {
+ final long color = 0x00EEFF;
+ setColor(color);
+ dot(centerX, centerY, 12, true, 90);
+ final double angle = frame * 9.0d;
+ arcLine(centerX, centerY, 12, 40, angle, true, null, null, -1, -1, -1, false);
+ arcLine(centerX, centerY, 12, 40, angle + 120, true, null, null, -1, -1, -1, false);
+ arcLine(centerX, centerY, 12, 40, angle + 240, true, null, null, -1, -1, -1, false);
+ }
+
+ private void drawOverlay(final int frame) {
+ setColor(0x66FFFF);
+ PrintTool.print(this, 6, 12, 0, "DATA SPINDLE", -1, 80);
+ setColor(0x00FFAA);
+ PrintTool.print(this, 6, 24, 0, String.format("IDX:%02d", frame % 32), -1, 70);
+ setColor(0x00CCFF);
+ PrintTool.print(this, getWidth() - 6, 12, 0, "RPM" + (frame * 37 % 1000), 1, 70);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final DataSpindleCarouselPlotter plotter = new DataSpindleCarouselPlotter(400, 400);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame(frame);
+ final File out = new File(dir, String.format("data_spindle_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save spindle frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java b/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java
new file mode 100644
index 000000000..6a70527e8
--- /dev/null
+++ b/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java
@@ -0,0 +1,132 @@
+/**
+ * DotMatrixWaterfallPlotter
+ * Emulates a retro dot-matrix printer style waterfall chart.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class DotMatrixWaterfallPlotter extends RasterPlotter {
+
+ private final double[] steps;
+ private final String[] labels;
+ private final long positiveColor = 0x66FF99;
+ private final long negativeColor = 0xFF7777;
+ private final long totalColor = 0x00FFFF;
+
+ public DotMatrixWaterfallPlotter(final int width, final int height, final double[] steps, final String[] labels) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x040404);
+ this.steps = steps;
+ this.labels = labels;
+ }
+
+ public void render() {
+ clear();
+ drawPaperFeed();
+ double cumulative = 0.0d;
+ final int baseX = 80;
+ final int baseline = getHeight() - 80;
+ final int stepWidth = (getWidth() - baseX - 40) / steps.length;
+ for (int i = 0; i < steps.length; i++) {
+ final double step = steps[i];
+ final boolean isTotal = (i == steps.length - 1);
+ final long color = isTotal ? totalColor : step >= 0 ? positiveColor : negativeColor;
+ final double previous = cumulative;
+ cumulative += step;
+ final double top = Math.max(previous, cumulative);
+ final double bottom = Math.min(previous, cumulative);
+ final int left = baseX + i * stepWidth;
+ final int right = left + stepWidth - 20;
+ fillDots(left, right, baseline - (int) (top * 3), baseline - (int) (bottom * 3), color, isTotal);
+ drawStepLabel(left, baseline, labels[i], step, color);
+ if (i < steps.length - 1) {
+ setColor(0x003333);
+ line(right + 4, baseline - (int) (cumulative * 3), right + stepWidth - 4, baseline - (int) (cumulative * 3), 25);
+ }
+ }
+ drawAxes();
+ }
+
+ private void drawPaperFeed() {
+ setColor(0x1A1A1A);
+ for (int y = 0; y < getHeight(); y += 16) {
+ line(0, y, getWidth(), y, 18);
+ }
+ setColor(0x202020);
+ for (int x = 0; x < getWidth(); x += 12) {
+ dot(x, 12, 1, true, 40);
+ dot(x, getHeight() - 12, 1, true, 40);
+ }
+ }
+
+ private void fillDots(final int left, final int right, final int top, final int bottom, final long color, final boolean heavy) {
+ final int spacing = heavy ? 3 : 4;
+ for (int y = top; y <= bottom; y += spacing) {
+ for (int x = left; x <= right; x += spacing) {
+ setColor(color);
+ dot(x, y, heavy ? 2 : 1, true, heavy ? 90 : 70);
+ }
+ }
+ // border
+ setColor(darken(color, 0.5d));
+ line(left, top, right, top, 60);
+ line(left, bottom, right, bottom, 60);
+ line(left, top, left, bottom, 60);
+ line(right, top, right, bottom, 60);
+ }
+
+ private void drawStepLabel(final int left, final int baseline, final String label, final double value, final long color) {
+ setColor(color);
+ PrintTool.print(this, left + 2, baseline + 14, 0, label, -1, 70);
+ PrintTool.print(this, left + 2, baseline + 24, 0, String.format("%+.1f", value), -1, 60);
+ }
+
+ private void drawAxes() {
+ final int baseline = getHeight() - 80;
+ setColor(0x005555);
+ line(60, baseline, getWidth() - 20, baseline, 40);
+ line(60, baseline, 60, 60, 40);
+ for (int i = 0; i <= 6; i++) {
+ int y = baseline - i * 30;
+ line(60, y, getWidth() - 20, y, 20);
+ PrintTool.print(this, 42, y, 0, String.format("%+d", i * 10), -1, 50);
+ }
+ setColor(0x00FFFF);
+ PrintTool.print(this, getWidth() / 2, 30, 0, "WATERFALL LEDGER", 0, 85);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final double[] steps = {40, 18, -12, 22, -15, 30};
+ final String[] labels = {"BASE", "SALES", "RETURNS", "SERVICE", "LOSS", "TOTAL"};
+ final DotMatrixWaterfallPlotter plotter = new DotMatrixWaterfallPlotter(640, 360, steps, labels);
+ plotter.render();
+ final File out = new File(dir, "dot_matrix_waterfall.png");
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Unable to write waterfall image", e);
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java b/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java
new file mode 100644
index 000000000..d59eec155
--- /dev/null
+++ b/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java
@@ -0,0 +1,110 @@
+/**
+ * HeartbeatTelemetryRibbonPlotter
+ * Decorative ECG-style ribbon for HUD overlays.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class HeartbeatTelemetryRibbonPlotter extends RasterPlotter {
+
+ private final int ribbonHeight = 80;
+ private final int baseline;
+
+ public HeartbeatTelemetryRibbonPlotter(final int width, final int height) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x00000C);
+ this.baseline = height / 2;
+ }
+
+ public void renderFrame(final int frame) {
+ clear();
+ drawBackground();
+ drawRibbon(frame);
+ drawMarkers(frame);
+ drawOverlay(frame);
+ }
+
+ private void drawBackground() {
+ setColor(0x001020);
+ for (int y = 0; y < getHeight(); y += 4) line(0, y, getWidth(), y, 12);
+ }
+
+ private void drawRibbon(final int frame) {
+ final int left = 20;
+ final int right = getWidth() - 20;
+ final int amplitude = ribbonHeight / 2;
+ setColor(0x00334C);
+ line(left, baseline, right, baseline, 40);
+ setColor(0x00FFAA);
+ int prevX = left;
+ int prevY = baseline;
+ for (int x = left; x <= right; x++) {
+ final double t = (x - left) / (double) (right - left);
+ final double wave = heartbeatWave(t, frame);
+ final int y = baseline - (int) (wave * amplitude);
+ line(prevX, prevY, x, y, 80);
+ prevX = x;
+ prevY = y;
+ }
+ }
+
+ private double heartbeatWave(final double t, final int frame) {
+ final double phase = t * 4.0 + frame * 0.1;
+ double wave = Math.sin(phase * Math.PI * 2) * 0.2;
+ final double beat = (phase + frame * 0.02) % 1.0;
+ if (beat < 0.04) wave += Math.sin(beat * Math.PI / 0.04) * 1.2;
+ if (beat > 0.04 && beat < 0.08) wave -= Math.sin((beat - 0.04) * Math.PI / 0.04) * 0.6;
+ return Math.max(-1.0, Math.min(1.0, wave));
+ }
+
+ private void drawMarkers(final int frame) {
+ setColor(0x00BBFF);
+ for (int x = 20; x < getWidth(); x += 60) {
+ line(x, baseline - ribbonHeight / 2, x, baseline + ribbonHeight / 2, 20);
+ }
+ setColor(0x66FFFF);
+ PrintTool.print(this, 20, baseline - ribbonHeight / 2 - 12, 0, "SYNC", -1, 70);
+ }
+
+ private void drawOverlay(final int frame) {
+ setColor(0x66FFEE);
+ PrintTool.print(this, 6, 12, 0, "CARDIAC TELEMETRY", -1, 80);
+ setColor(0x00FFAA);
+ PrintTool.print(this, getWidth() - 6, 12, 0, "BPM" + (frame * 3 % 90 + 60), 1, 70);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final HeartbeatTelemetryRibbonPlotter plotter = new HeartbeatTelemetryRibbonPlotter(640, 240);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame(frame);
+ final File out = new File(dir, String.format("telemetry_ribbon_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save telemetry frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/PixelTrendMatrixPlotter.java b/source/net/yacy/visualization/PixelTrendMatrixPlotter.java
new file mode 100644
index 000000000..7f8a5fe5b
--- /dev/null
+++ b/source/net/yacy/visualization/PixelTrendMatrixPlotter.java
@@ -0,0 +1,131 @@
+/**
+ * PixelTrendMatrixPlotter
+ * Draws a matrix of miniature trend charts on a retro CRT grid.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Random;
+
+public class PixelTrendMatrixPlotter extends RasterPlotter {
+
+ private final int rows;
+ private final int cols;
+ private final double[][] data;
+ private final Random random;
+
+ public PixelTrendMatrixPlotter(final int width, final int height, final int rows, final int cols) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000012);
+ this.rows = rows;
+ this.cols = cols;
+ this.random = new Random(0xBADC0DE);
+ this.data = new double[rows * cols][16];
+ for (int i = 0; i < data.length; i++) {
+ double value = random.nextDouble();
+ for (int j = 0; j < data[i].length; j++) {
+ value += (random.nextDouble() - 0.5) * 0.25;
+ value = Math.min(Math.max(value, 0.05), 0.95);
+ data[i][j] = value;
+ }
+ }
+ }
+
+ public void renderMatrix(final double wobble) {
+ clear();
+ drawGrid();
+ final int cellWidth = getWidth() / cols;
+ final int cellHeight = getHeight() / rows;
+ for (int row = 0; row < rows; row++) {
+ for (int col = 0; col < cols; col++) {
+ final int index = row * cols + col;
+ final int x0 = col * cellWidth;
+ final int y0 = row * cellHeight;
+ drawCell(x0, y0, cellWidth, cellHeight, data[index], (index + wobble) % 1.0);
+ }
+ }
+ }
+
+ private void drawGrid() {
+ setColor(0x001A33);
+ for (int y = 0; y < getHeight(); y += 8) line(0, y, getWidth(), y, 15);
+ for (int x = 0; x < getWidth(); x += 8) line(x, 0, x, getHeight(), 15);
+ }
+
+ private void drawCell(final int x0, final int y0, final int width, final int height, final double[] values, final double wobble) {
+ setColor(0x002C44);
+ for (int y = y0; y < y0 + height; y++) line(x0, y, x0 + width, y, 20);
+ final int padding = 6;
+ final int innerWidth = width - 2 * padding;
+ final int innerHeight = height - 2 * padding - 14;
+ final int chartLeft = x0 + padding;
+ final int chartTop = y0 + padding + 12;
+ final long baselineColor = 0x003F6F + ((int) (wobble * 4) << 16);
+ setColor(baselineColor);
+ line(chartLeft, chartTop + innerHeight / 2, chartLeft + innerWidth, chartTop + innerHeight / 2, 35);
+ setColor(0x00FFAA);
+ final int points = values.length;
+ int prevX = chartLeft;
+ int prevY = chartTop + (int) (innerHeight * (1.0 - values[0]));
+ for (int i = 1; i < points; i++) {
+ final int x = chartLeft + i * innerWidth / (points - 1);
+ final int y = chartTop + (int) (innerHeight * (1.0 - values[i])) + (int) (Math.sin((wobble + i) * 0.6) * 2);
+ line(prevX, prevY, x, y, 70);
+ prevX = x;
+ prevY = y;
+ }
+ setColor(0x00FFFF);
+ for (int i = 0; i < points; i += 3) {
+ final int x = chartLeft + i * innerWidth / (points - 1);
+ final int y = chartTop + (int) (innerHeight * (1.0 - values[i]));
+ dot(x, y, 2, true, 80);
+ }
+ setColor(0x66FFDD);
+ PrintTool.print(this, x0 + width / 2, y0 + 10, 0, labelForCell(values), 0, 70);
+ }
+
+ private String labelForCell(final double[] values) {
+ double min = Double.POSITIVE_INFINITY;
+ double max = Double.NEGATIVE_INFINITY;
+ for (double v : values) {
+ min = Math.min(min, v);
+ max = Math.max(max, v);
+ }
+ final int trend = (int) ((values[values.length - 1] - values[0]) * 100);
+ return String.format("%+d%% [%02d:%02d]", trend, (int) (min * 100), (int) (max * 100));
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final PixelTrendMatrixPlotter plotter = new PixelTrendMatrixPlotter(640, 400, 3, 4);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderMatrix(frame / 8.0d);
+ final File out = new File(dir, String.format("trend_matrix_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save matrix frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/RetroVfdDashboardPlotter.java b/source/net/yacy/visualization/RetroVfdDashboardPlotter.java
new file mode 100644
index 000000000..ba4f3894e
--- /dev/null
+++ b/source/net/yacy/visualization/RetroVfdDashboardPlotter.java
@@ -0,0 +1,144 @@
+/**
+ * RetroVfdDashboardPlotter
+ * Draws teal-on-black virtual fluorescent display gauges and counters.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class RetroVfdDashboardPlotter extends RasterPlotter {
+
+ private final int centerX;
+ private final int centerY;
+
+ public RetroVfdDashboardPlotter(final int width, final int height) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000008);
+ this.centerX = width / 2;
+ this.centerY = height / 2 + 20;
+ }
+
+ public void renderFrame(final double sweepFraction) {
+ clear();
+ drawBackground();
+ drawGauge("THROUGHPUT", centerX - 140, centerY, 110, sweepFraction, 0x00F0D0, 0.78);
+ drawGauge("LATENCY", centerX + 140, centerY, 110, 1.0 - sweepFraction * 0.6, 0x00C0FF, 0.45);
+ drawCounters(sweepFraction);
+ drawStatusLights(sweepFraction);
+ }
+
+ private void drawBackground() {
+ setColor(0x001820);
+ for (int y = 0; y < getHeight(); y += 6) {
+ line(0, y, getWidth(), y, 20);
+ }
+ setColor(0x003040);
+ line(0, centerY + 120, getWidth(), centerY + 120, 35);
+ line(0, centerY - 140, getWidth(), centerY - 140, 25);
+ }
+
+ private void drawGauge(final String label, final int cx, final int cy, final int radius, final double fraction, final long color, final double labelOffset) {
+ final int inner = radius - 28;
+ final int outer = radius;
+ setColor(darken(color, 0.3));
+ arc(cx, cy, inner - 6, outer + 6, 18);
+ setColor(darken(color, 0.5));
+ arc(cx, cy, inner - 2, inner, 30);
+ setColor(color);
+ final int start = 210;
+ final int sweep = (int) Math.round(300 * fraction);
+ arc(cx, cy, inner, outer, start, start + sweep);
+ for (int tick = 0; tick <= 10; tick++) {
+ final int angle = start + tick * 30;
+ final int intensity = tick % 5 == 0 ? 70 : 40;
+ setColor(darken(color, tick % 5 == 0 ? 0.4 : 0.6));
+ arcLine(cx, cy, inner - 6, inner + 6, angle, true, null, null, -1, -1, -1, false);
+ if (tick % 5 == 0) {
+ final int tx = cx + (int) (Math.cos(Math.toRadians(angle)) * (inner - 20));
+ final int ty = cy - (int) (Math.sin(Math.toRadians(angle)) * (inner - 20));
+ setColor(color);
+ PrintTool.print(this, tx, ty, 0, Integer.toString(tick), -1, intensity);
+ }
+ }
+ setColor(color);
+ final int needleAngle = start + sweep;
+ arcLine(cx, cy, 0, inner, needleAngle, true, null, null, -1, -1, -1, false);
+ dot(cx, cy, 6, true, 80);
+ PrintTool.print(this, cx, (int) (cy + labelOffset * radius), 0, label, 0, 75);
+ }
+
+ private void drawCounters(final double fraction) {
+ final long color = 0x00FFD8;
+ setColor(color);
+ final int baseY = centerY + 150;
+ PrintTool.print(this, centerX - 150, baseY, 0, "REQ/S", -1, 70);
+ PrintTool.print(this, centerX + 150, baseY, 0, "ERROR%", -1, 70);
+ setColor(0x003030);
+ fillRectangle(centerX - 200, baseY - 4, centerX - 40, baseY + 20);
+ fillRectangle(centerX + 40, baseY - 4, centerX + 200, baseY + 20);
+ final String left = sevenSegmentNumber(4300 + (int) (fraction * 1200));
+ final String right = sevenSegmentNumber((int) (fraction * 240));
+ setColor(color);
+ PrintTool.print(this, centerX - 40, baseY + 8, 0, left, -1, 100);
+ PrintTool.print(this, centerX + 200, baseY + 8, 0, right, -1, 100);
+ }
+
+ private void fillRectangle(final int x1, final int y1, final int x2, final int y2) {
+ for (int y = y1; y <= y2; y++) line(x1, y, x2, y, 18);
+ }
+
+ private void drawStatusLights(final double fraction) {
+ final int top = centerY - 200;
+ final String[] labels = {"NET", "CPU", "IO", "CACHE"};
+ final long[] colors = {0x00FFCC, 0xFF8844, 0x66FF99, 0xFFEE44};
+ for (int i = 0; i < labels.length; i++) {
+ final int x = 80 + i * 90;
+ final int intensity = (int) ((Math.sin(fraction * Math.PI * 2 + i) + 1.0) * 30) + 40;
+ setColor(darken(colors[i], 0.4));
+ dot(x, top, 12, true, intensity);
+ dot(x, top, 6, true, intensity + 10);
+ setColor(colors[i]);
+ PrintTool.print(this, x, top - 20, 0, labels[i], 0, 60);
+ }
+ }
+
+ private String sevenSegmentNumber(final int value) {
+ final String s = String.format("%04d", Math.abs(value));
+ return s;
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final RetroVfdDashboardPlotter plotter = new RetroVfdDashboardPlotter(640, 420);
+ for (int frame = 0; frame < 8; frame++) {
+ final double fraction = frame / 7.0d;
+ plotter.renderFrame(fraction);
+ final File out = new File(dir, String.format("vfd_dashboard_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to store frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java b/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java
new file mode 100644
index 000000000..9c8fdfa34
--- /dev/null
+++ b/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java
@@ -0,0 +1,122 @@
+/**
+ * SignalCascadeMatrixPlotter
+ * Vertical cascaded bar HUD for decorative telemetry.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Random;
+
+public class SignalCascadeMatrixPlotter extends RasterPlotter {
+
+ private final int columns;
+ private final int rows;
+ private final double[][] amplitudes;
+ private final Random random;
+
+ public SignalCascadeMatrixPlotter(final int width, final int height, final int columns, final int rows) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000010);
+ this.columns = columns;
+ this.rows = rows;
+ this.random = new Random(0xCAFEBABE);
+ this.amplitudes = new double[columns][rows];
+ for (int c = 0; c < columns; c++) {
+ for (int r = 0; r < rows; r++) {
+ amplitudes[c][r] = random.nextDouble();
+ }
+ }
+ }
+
+ public void renderFrame() {
+ clear();
+ drawBackground();
+ final int columnWidth = getWidth() / columns;
+ for (int c = 0; c < columns; c++) {
+ updateColumn(c);
+ drawColumn(c * columnWidth, columnWidth - 6, amplitudes[c]);
+ }
+ drawOverlay();
+ }
+
+ private void drawBackground() {
+ setColor(0x001A2A);
+ for (int x = 0; x < getWidth(); x += 10) line(x, 0, x, getHeight(), 12);
+ for (int y = 0; y < getHeight(); y += 6) line(0, y, getWidth(), y, 10);
+ }
+
+ private void updateColumn(final int column) {
+ for (int r = rows - 1; r > 0; r--) {
+ amplitudes[column][r] = amplitudes[column][r - 1];
+ }
+ final double prev = amplitudes[column][0];
+ double next = prev + (random.nextDouble() - 0.5) * 0.4;
+ next = Math.max(0.05, Math.min(0.95, next));
+ amplitudes[column][0] = next;
+ }
+
+ private void drawColumn(final int left, final int width, final double[] values) {
+ final int barHeight = getHeight() / rows;
+ for (int r = 0; r < rows; r++) {
+ final double value = values[r];
+ final int height = (int) (value * barHeight);
+ final int y = getHeight() - (r + 1) * barHeight;
+ final long color = value > 0.7 ? 0xFF5577 : value > 0.4 ? 0x00FFAA : 0x55CCFF;
+ fillBar(left, y, width, height, color, r);
+ }
+ }
+
+ private void fillBar(final int left, final int bottom, final int width, final int height, final long color, final int row) {
+ final int top = bottom + (row % 2 == 0 ? 2 : 0);
+ for (int i = 0; i < height; i += 3) {
+ final int y = bottom - i;
+ if (y < 0) break;
+ setColor(darken(color, 0.4 + (i % 9) * 0.03));
+ line(left + 2, y, left + width - 2, y, 65);
+ }
+ setColor(lighten(color, 1.5d));
+ line(left + 2, top, left + width - 2, top, 85);
+ line(left + 2, bottom - height, left + width - 2, bottom - height, 30);
+ }
+
+ private void drawOverlay() {
+ setColor(0x66FFFF);
+ PrintTool.print(this, 6, 14, 0, "SIGNAL CASCADE", -1, 80);
+ setColor(0x00FFAA);
+ PrintTool.print(this, getWidth() - 6, 14, 0, "CHANNELS:" + columns, 1, 70);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final SignalCascadeMatrixPlotter plotter = new SignalCascadeMatrixPlotter(480, 360, 10, 40);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame();
+ final File out = new File(dir, String.format("cascade_matrix_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Could not save cascade frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java b/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java
new file mode 100644
index 000000000..a176ae09f
--- /dev/null
+++ b/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java
@@ -0,0 +1,124 @@
+/**
+ * SpectralAnalyzerStripPlotter
+ * Horizontal strip-style spectral analyzer for decorative HUDs.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Random;
+
+public class SpectralAnalyzerStripPlotter extends RasterPlotter {
+
+ private final double[][] bands;
+ private final Random random;
+
+ public SpectralAnalyzerStripPlotter(final int width, final int height, final int segments, final int bandsPerSegment) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000011);
+ this.random = new Random(0x5EC7C0DE);
+ this.bands = new double[segments][bandsPerSegment];
+ for (int s = 0; s < segments; s++) {
+ for (int b = 0; b < bandsPerSegment; b++) {
+ bands[s][b] = random.nextDouble();
+ }
+ }
+ }
+
+ public void renderFrame() {
+ clear();
+ drawBackground();
+ final int segments = bands.length;
+ final int segmentWidth = getWidth() / segments;
+ for (int s = 0; s < segments; s++) {
+ updateSegment(s);
+ drawSegment(s * segmentWidth, segmentWidth, bands[s]);
+ }
+ drawOverlay();
+ }
+
+ private void drawBackground() {
+ setColor(0x001928);
+ for (int y = 0; y < getHeight(); y += 4) line(0, y, getWidth(), y, 15);
+ }
+
+ private void updateSegment(final int segment) {
+ final double[] values = bands[segment];
+ for (int i = 0; i < values.length; i++) {
+ double next = values[i] + (random.nextDouble() - 0.5) * 0.3;
+ next = Math.max(0.05, Math.min(1.0, next));
+ values[i] = next * 0.7 + values[i] * 0.3;
+ }
+ }
+
+ private void drawSegment(final int left, final int width, final double[] values) {
+ final int bottom = getHeight() - 24;
+ final int top = 28;
+ final int bandCount = values.length;
+ final int bandWidth = Math.max(2, (width - 12) / bandCount);
+ for (int i = 0; i < bandCount; i++) {
+ final double value = values[i];
+ final int height = (int) (value * (bottom - top));
+ final int x = left + 6 + i * bandWidth;
+ final long color = colorForBand(value, i);
+ setColor(color);
+ for (int y = bottom; y > bottom - height; y -= 2) line(x, y, x + bandWidth - 2, y, 75);
+ setColor(lighten(color, 1.4d));
+ line(x, bottom - height, x + bandWidth - 2, bottom - height, 90);
+ }
+ setColor(0x004F6F);
+ line(left + 4, top, left + width - 4, top, 30);
+ line(left + 4, bottom, left + width - 4, bottom, 30);
+ }
+
+ private long colorForBand(final double value, final int index) {
+ final int hueShift = (index * 20) % 120;
+ final double base = Math.min(1.0, value + hueShift / 160.0);
+ final int r = (int) (base * 255);
+ final int g = (int) ((0.5 + value / 2) * 180);
+ final int b = (int) ((1.0 - base) * 180 + 60);
+ return (r << 16) | (g << 8) | b;
+ }
+
+ private void drawOverlay() {
+ setColor(0x66FFFF);
+ PrintTool.print(this, 6, 12, 0, "SPECTRAL ANALYZER", -1, 80);
+ setColor(0x00FFAA);
+ PrintTool.print(this, 6, getHeight() - 10, 0, "HZ" + random.nextInt(8000), -1, 60);
+ setColor(0x00BBFF);
+ PrintTool.print(this, getWidth() - 6, 12, 0, "GAIN" + random.nextInt(30), 1, 70);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final SpectralAnalyzerStripPlotter plotter = new SpectralAnalyzerStripPlotter(640, 220, 12, 24);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame();
+ final File out = new File(dir, String.format("spectral_strip_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Could not write spectral frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/SubsystemStatusMosaicPlotter.java b/source/net/yacy/visualization/SubsystemStatusMosaicPlotter.java
new file mode 100644
index 000000000..ae8b9e90c
--- /dev/null
+++ b/source/net/yacy/visualization/SubsystemStatusMosaicPlotter.java
@@ -0,0 +1,155 @@
+/**
+ * SubsystemStatusMosaicPlotter
+ * Animated mosaic of subsystem indicators for decorative HUD backdrops.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Random;
+
+public class SubsystemStatusMosaicPlotter extends RasterPlotter {
+
+ private final int columns;
+ private final int rows;
+ private final double[][] phases;
+ private final Random random;
+
+ public SubsystemStatusMosaicPlotter(final int width, final int height, final int columns, final int rows) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000015);
+ this.columns = columns;
+ this.rows = rows;
+ this.phases = new double[rows][columns];
+ this.random = new Random(0x1ACEB00C);
+ for (int r = 0; r < rows; r++) {
+ for (int c = 0; c < columns; c++) {
+ phases[r][c] = random.nextDouble() * Math.PI * 2;
+ }
+ }
+ }
+
+ public void renderFrame(final int frame) {
+ clear();
+ drawBackground();
+ final int cellWidth = getWidth() / columns;
+ final int cellHeight = getHeight() / rows;
+ for (int r = 0; r < rows; r++) {
+ for (int c = 0; c < columns; c++) {
+ drawCell(r, c, frame, c * cellWidth, r * cellHeight, cellWidth, cellHeight);
+ }
+ }
+ }
+
+ private void drawBackground() {
+ setColor(0x001020);
+ for (int y = 0; y < getHeight(); y += 6) line(0, y, getWidth(), y, 12);
+ }
+
+ private void drawCell(final int row, final int col, final int frame, final int x, final int y, final int width, final int height) {
+ final double phase = phases[row][col] + frame * 0.2 + col * 0.1;
+ final long color = colorForCell(row, col);
+ setColor(darken(color, 0.5d));
+ for (int yy = y + 2; yy < y + height - 2; yy++) line(x + 2, yy, x + width - 2, yy, 25);
+ setColor(color);
+ line(x + 2, y + 2, x + width - 2, y + 2, 70);
+ line(x + 2, y + height - 2, x + width - 2, y + height - 2, 40);
+ line(x + 2, y + 2, x + 2, y + height - 2, 40);
+ line(x + width - 2, y + 2, x + width - 2, y + height - 2, 40);
+ final int inset = 6;
+ switch ((row + col) % 4) {
+ case 0: drawSpinner(x + inset, y + inset, width - inset * 2, height - inset * 2, phase); break;
+ case 1: drawHistogram(x + inset, y + inset, width - inset * 2, height - inset * 2, phase); break;
+ case 2: drawWaveform(x + inset, y + inset, width - inset * 2, height - inset * 2, phase); break;
+ default: drawPulseDot(x + inset, y + inset, width - inset * 2, height - inset * 2, phase); break;
+ }
+ }
+
+ private void drawSpinner(final int x, final int y, final int width, final int height, final double phase) {
+ final int cx = x + width / 2;
+ final int cy = y + height / 2;
+ final int radius = Math.min(width, height) / 2 - 2;
+ setColor(0x00FFAA);
+ for (int spoke = 0; spoke < 4; spoke++) {
+ final double angle = phase * 40 + spoke * 90;
+ final int sx = cx + (int) (Math.cos(Math.toRadians(angle)) * radius);
+ final int sy = cy - (int) (Math.sin(Math.toRadians(angle)) * radius);
+ line(cx, cy, sx, sy, 70 - spoke * 5);
+ }
+ }
+
+ private void drawHistogram(final int x, final int y, final int width, final int height, final double phase) {
+ final int bars = Math.max(3, width / 6);
+ for (int b = 0; b < bars; b++) {
+ final double value = 0.5 + Math.sin(phase + b * 0.6) * 0.45;
+ final int barHeight = (int) (value * height);
+ final int left = x + b * (width / bars);
+ setColor(0x66FFEE);
+ for (int yy = y + height - barHeight; yy < y + height; yy += 2) line(left + 1, yy, left + (width / bars) - 2, yy, 60);
+ }
+ }
+
+ private void drawWaveform(final int x, final int y, final int width, final int height, final double phase) {
+ setColor(0xFF66CC);
+ int prevX = x;
+ int prevY = y + height / 2;
+ for (int i = 0; i <= width; i++) {
+ final double t = i / (double) width;
+ final int yy = y + height / 2 - (int) (Math.sin(phase * 3 + t * Math.PI * 2) * height / 2.2);
+ line(prevX, prevY, x + i, yy, 70);
+ prevX = x + i;
+ prevY = yy;
+ }
+ }
+
+ private void drawPulseDot(final int x, final int y, final int width, final int height, final double phase) {
+ final int cx = x + width / 2;
+ final int cy = y + height / 2;
+ final int radius = (int) (Math.abs(Math.sin(phase)) * Math.min(width, height) / 2);
+ setColor(0x00DDFF);
+ dot(cx, cy, radius + 1, true, 80);
+ setColor(0x66FFAA);
+ dot(cx, cy, radius / 2 + 1, true, 90);
+ }
+
+ private long colorForCell(final int row, final int col) {
+ final int base = (row * 37 + col * 53) & 0xFF;
+ final int r = 40 + (base & 0x3F);
+ final int g = 120 + ((base >> 2) & 0x3F);
+ final int b = 160 + ((base >> 4) & 0x3F);
+ return (r << 16) | (g << 8) | b;
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final SubsystemStatusMosaicPlotter plotter = new SubsystemStatusMosaicPlotter(640, 360, 8, 4);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame(frame);
+ final File out = new File(dir, String.format("status_mosaic_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Unable to save mosaic frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java b/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java
new file mode 100644
index 000000000..bdf6b7ea6
--- /dev/null
+++ b/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java
@@ -0,0 +1,122 @@
+/**
+ * TelemetryOrbitalSweepPlotter
+ * Decorative orbital HUD element with sweeping vectors.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class TelemetryOrbitalSweepPlotter extends RasterPlotter {
+
+ private final int centerX;
+ private final int centerY;
+ private final int baseRadius;
+ private final double[] satelliteAngles;
+ private final int[] satelliteRadii;
+
+ public TelemetryOrbitalSweepPlotter(final int width, final int height) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000012);
+ this.centerX = width / 2;
+ this.centerY = height / 2;
+ this.baseRadius = Math.min(width, height) / 3;
+ this.satelliteAngles = new double[]{15, 80, 130, 210, 275, 330};
+ this.satelliteRadii = new int[]{baseRadius - 20, baseRadius + 40, baseRadius + 90, baseRadius - 50, baseRadius + 60, baseRadius + 10};
+ }
+
+ public void renderFrame(final int frame) {
+ clear();
+ drawBackgroundGrid();
+ drawOrbits(frame);
+ drawSatellites(frame);
+ drawOverlay(frame);
+ }
+
+ private void drawBackgroundGrid() {
+ setColor(0x001A33);
+ for (int r = 30; r <= baseRadius + 140; r += 30) arc(centerX, centerY, r - 3, r, 20);
+ setColor(0x002A44);
+ for (int a = 0; a < 360; a += 10) line(centerX, centerY, centerX + (int) (Math.cos(Math.toRadians(a)) * (baseRadius + 150)), centerY + (int) (-Math.sin(Math.toRadians(a)) * (baseRadius + 150)), 15);
+ }
+
+ private void drawOrbits(final int frame) {
+ final double sweep = (frame % 8) * 45.0d;
+ setColor(0x00FFCC);
+ final int outer = baseRadius + 120;
+ arc(centerX, centerY, outer - 2, outer + 2, 30);
+ arcLine(centerX, centerY, 40, outer, sweep, true, null, null, -1, -1, -1, false);
+ arcLine(centerX, centerY, 40, outer, sweep - 12, true, null, null, -1, -1, -1, false);
+ setColor(0x00AAEE);
+ for (int r = baseRadius - 20; r <= baseRadius + 90; r += 40) arc(centerX, centerY, r - 1, r + 1, 40);
+ }
+
+ private void drawSatellites(final int frame) {
+ final double sweep = (frame % 8) * 45.0d;
+ for (int i = 0; i < satelliteAngles.length; i++) {
+ final double angle = satelliteAngles[i] + frame * (i + 1) * 2.5d;
+ final int radius = satelliteRadii[i];
+ final int x = centerX + (int) Math.round(Math.cos(Math.toRadians(angle)) * radius);
+ final int y = centerY - (int) Math.round(Math.sin(Math.toRadians(angle)) * radius);
+ final long color = i % 2 == 0 ? 0x66FFEE : 0xFF66CC;
+ setColor(color);
+ dot(x, y, 6, true, 90);
+ setColor(lighten(color, 1.6d));
+ dot(x, y, 2, true, 100);
+ setColor(color);
+ arcLine(centerX, centerY, radius - 12, radius, angle, true, null, null, -1, -1, -1, false);
+ }
+ setColor(0x00FFAA);
+ final int pulseRadius = baseRadius + (int) (Math.sin(Math.toRadians(sweep * 3)) * 12);
+ arc(centerX, centerY, pulseRadius - 1, pulseRadius + 1, 50);
+ }
+
+ private void drawOverlay(final int frame) {
+ setColor(0x66FFFF);
+ PrintTool.print(this, 6, 12, 0, "ORBITAL TELEMETRY", -1, 80);
+ PrintTool.print(this, 6, 22, 0, String.format("SWEEP:%03d", (frame * 45) % 360), -1, 70);
+ setColor(0x00CCFF);
+ PrintTool.print(this, getWidth() - 6, 12, 0, "ALT/KM", 1, 70);
+ PrintTool.print(this, getWidth() - 6, 22, 0, "VEL/MPS", 1, 70);
+ final int statusY = getHeight() - 18;
+ setColor(0x00FFAA);
+ PrintTool.print(this, 6, statusY, 0, "LOCK", -1, 70);
+ setColor(0xFF66CC);
+ PrintTool.print(this, 70, statusY, 0, "TRACK", -1, 60);
+ setColor(0x00DDFF);
+ PrintTool.print(this, getWidth() - 6, statusY, 0, "SIG" + (frame % 8), 1, 60);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final TelemetryOrbitalSweepPlotter plotter = new TelemetryOrbitalSweepPlotter(480, 480);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame(frame);
+ final File out = new File(dir, String.format("telemetry_orbit_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Unable to save orbital frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java b/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java
new file mode 100644
index 000000000..700ec73ea
--- /dev/null
+++ b/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java
@@ -0,0 +1,126 @@
+/**
+ * TriangulationGridOverlayPlotter
+ * Produces a translucent triangulation HUD overlay for decorative maps.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class TriangulationGridOverlayPlotter extends RasterPlotter {
+
+ private final int centerX;
+ private final int centerY;
+
+ public TriangulationGridOverlayPlotter(final int width, final int height) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000018);
+ this.centerX = width / 2;
+ this.centerY = height / 2;
+ }
+
+ public void renderFrame(final int frame) {
+ clear();
+ drawBaseMap();
+ drawTriangulation(frame);
+ drawCrosshair(frame);
+ drawReadouts(frame);
+ }
+
+ private void drawBaseMap() {
+ setColor(0x001822);
+ for (int y = 0; y < getHeight(); y += 8) line(0, y, getWidth(), y, 12);
+ for (int x = 0; x < getWidth(); x += 10) line(x, 0, x, getHeight(), 12);
+ setColor(0x002A38);
+ for (int i = -6; i <= 6; i++) {
+ line(centerX + i * 40, 0, centerX + i * 40, getHeight(), 18);
+ line(0, centerY + i * 40, getWidth(), centerY + i * 40, 18);
+ }
+ }
+
+ private void drawTriangulation(final int frame) {
+ final int sectors = 6;
+ final int radius = Math.min(getWidth(), getHeight()) / 2 - 40;
+ final double baseAngle = frame * 6.0d;
+ for (int i = 0; i < sectors; i++) {
+ final double angle = baseAngle + i * (360.0 / sectors);
+ final int x = centerX + (int) (Math.cos(Math.toRadians(angle)) * radius);
+ final int y = centerY - (int) (Math.sin(Math.toRadians(angle)) * radius);
+ setColor(0x00FFAA);
+ line(centerX, centerY, x, y, 50);
+ setColor(0x0066FF);
+ arcLine(centerX, centerY, radius - 20, radius, angle + 6, true, null, null, -1, -1, -1, false);
+ }
+ // triangular sectors
+ setColor(0x0044AA);
+ for (int i = 0; i < sectors; i++) {
+ final double angle1 = baseAngle + i * (360.0 / sectors);
+ final double angle2 = baseAngle + (i + 1) * (360.0 / sectors);
+ final int x1 = centerX + (int) (Math.cos(Math.toRadians(angle1)) * radius / 1.2);
+ final int y1 = centerY - (int) (Math.sin(Math.toRadians(angle1)) * radius / 1.2);
+ final int x2 = centerX + (int) (Math.cos(Math.toRadians(angle2)) * radius / 1.2);
+ final int y2 = centerY - (int) (Math.sin(Math.toRadians(angle2)) * radius / 1.2);
+ final int[] xs = {centerX, x1, x2};
+ final int[] ys = {centerY, y1, y2};
+ fillPolygon(xs, ys, 0x001E33, 25);
+ setColor(0x0066FF);
+ line(centerX, centerY, x1, y1, 35);
+ line(centerX, centerY, x2, y2, 35);
+ line(x1, y1, x2, y2, 20);
+ }
+ }
+
+ private void drawCrosshair(final int frame) {
+ final int pulse = (int) (10 + 5 * Math.sin(Math.toRadians(frame * 15)));
+ setColor(0x00FFFF);
+ line(centerX - 80, centerY, centerX + 80, centerY, 50);
+ line(centerX, centerY - 80, centerX, centerY + 80, 50);
+ dot(centerX, centerY, pulse, false, 40);
+ dot(centerX, centerY, 4, true, 90);
+ }
+
+ private void drawReadouts(final int frame) {
+ final int left = 20;
+ final int top = 20;
+ setColor(0x66FFFF);
+ PrintTool.print(this, left, top, 0, "TRIANGULATION", -1, 80);
+ setColor(0x00FFAA);
+ PrintTool.print(this, left, top + 12, 0, String.format("Bearing:%03d", (frame * 6) % 360), -1, 70);
+ PrintTool.print(this, left, top + 24, 0, String.format("Phase:%02d", frame % 8), -1, 60);
+ setColor(0x00BBFF);
+ PrintTool.print(this, getWidth() - 6, getHeight() - 10, 0, "COORD" + (frame % 5), 1, 60);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File dir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!dir.exists()) dir.mkdirs();
+ final TriangulationGridOverlayPlotter plotter = new TriangulationGridOverlayPlotter(480, 360);
+ for (int frame = 0; frame < 8; frame++) {
+ plotter.renderFrame(frame);
+ final File out = new File(dir, String.format("triangulation_overlay_%02d.png", frame));
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save triangulation frame", e);
+ }
+ }
+ }
+}
diff --git a/source/net/yacy/visualization/WireframeBarPrismPlotter.java b/source/net/yacy/visualization/WireframeBarPrismPlotter.java
new file mode 100644
index 000000000..7597e0ab9
--- /dev/null
+++ b/source/net/yacy/visualization/WireframeBarPrismPlotter.java
@@ -0,0 +1,150 @@
+/**
+ * WireframeBarPrismPlotter
+ * Renders clustered bar charts as neon wireframe prisms.
+ * Copyright 2025 by Michael Peter Christen
+ * First released 20.09.2025 at https://yacy.net
+ *
+ * This file is part of YaCy.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.yacy.visualization;
+
+import java.io.File;
+import java.io.IOException;
+
+public class WireframeBarPrismPlotter extends RasterPlotter {
+
+ private final double[][] values;
+ private final long[] colors;
+ private final int originX;
+ private final int originY;
+ private final int barWidth;
+ private final int depth;
+
+ public WireframeBarPrismPlotter(final int width, final int height, final double[][] values) {
+ super(width, height, DrawMode.MODE_REPLACE, 0x000014);
+ this.values = values;
+ this.colors = new long[]{0x00FFFF, 0xFF66CC, 0x66FF99};
+ this.originX = 120;
+ this.originY = height - 80;
+ this.barWidth = 40;
+ this.depth = 28;
+ }
+
+ public void renderScene() {
+ clear();
+ drawAxes();
+ for (int series = 0; series < values.length; series++) {
+ for (int index = 0; index < values[series].length; index++) {
+ drawBar(series, index, values[series][index]);
+ }
+ }
+ drawLegend();
+ }
+
+ private void drawAxes() {
+ setColor(0x00324C);
+ line(originX - 60, originY, getWidth() - 40, originY, 40);
+ line(originX, originY + 20, originX + depth * 6, originY - depth * 6, 30);
+ line(originX, originY + 20, originX, originY - 240, 35);
+ setColor(0x005A80);
+ for (int i = 0; i <= 5; i++) {
+ int y = originY - i * 40;
+ line(originX, y, getWidth() - 60, y - depth * 2, 20);
+ PrintTool.print(this, originX - 70, y, 0, String.format("%3d", i * 20), -1, 60);
+ }
+ }
+
+ private void drawBar(final int series, final int index, final double value) {
+ final long baseColor = colors[series % colors.length];
+ final int x = originX + index * (barWidth + 20) + series * (barWidth + 4);
+ final int height = (int) Math.round(value * 160);
+ final int frontLeftX = x;
+ final int frontRightX = x + barWidth;
+ final int frontBottomY = originY;
+ final int frontTopY = originY - height;
+ final int backLeftX = frontLeftX + depth;
+ final int backRightX = frontRightX + depth;
+ final int backTopY = frontTopY - depth / 2;
+ final int backBottomY = frontBottomY - depth / 2;
+
+ // top face
+ setColor(lighten(baseColor, 1.5d));
+ fillPolygon(
+ new int[]{frontLeftX, frontRightX, backRightX, backLeftX},
+ new int[]{frontTopY, frontTopY, backTopY, backTopY},
+ lighten(baseColor, 1.2d),
+ 60);
+
+ // side faces (wireframe only)
+ setColor(baseColor);
+ line(frontLeftX, frontTopY, frontRightX, frontTopY, 90);
+ line(frontLeftX, frontBottomY, frontRightX, frontBottomY, 50);
+ line(frontLeftX, frontTopY, frontLeftX, frontBottomY, 70);
+ line(frontRightX, frontTopY, frontRightX, frontBottomY, 70);
+ // back edges
+ line(backLeftX, backTopY, backRightX, backTopY, 60);
+ line(backLeftX, backTopY, backLeftX, backBottomY, 50);
+ line(backRightX, backTopY, backRightX, backBottomY, 50);
+ // connecting edges
+ line(frontLeftX, frontTopY, backLeftX, backTopY, 65);
+ line(frontRightX, frontTopY, backRightX, backTopY, 65);
+ line(frontLeftX, frontBottomY, backLeftX, backBottomY, 40);
+ line(frontRightX, frontBottomY, backRightX, backBottomY, 40);
+
+ // neon fill stripes
+ setColor(darken(baseColor, 0.6d));
+ for (int stripe = 0; stripe < height; stripe += 6) {
+ final int y = frontTopY + stripe;
+ line(frontLeftX + 2, y, frontRightX - 2, y, 35);
+ }
+ // label
+ setColor(lighten(baseColor, 1.3d));
+ final String label = String.format("S%d-%d", series + 1, index + 1);
+ PrintTool.print(this, frontLeftX + barWidth / 2, originY + 14 + series * 12, 0, label, 0, 60);
+ }
+
+ private void drawLegend() {
+ final int x = getWidth() - 140;
+ final int y = 60;
+ for (int i = 0; i < colors.length; i++) {
+ setColor(colors[i]);
+ dot(x, y + i * 18, 6, true, 90);
+ PrintTool.print(this, x + 10, y + i * 18 + 4, 0, "SERIES " + (i + 1), -1, 70);
+ }
+ setColor(0x00EEFF);
+ PrintTool.print(this, x, y - 16, 0, "DATASET", -1, 80);
+ }
+
+ public static void main(final String[] args) {
+ System.setProperty("java.awt.headless", "true");
+ final File outDir = (args.length > 0) ? new File(args[0]) : new File(".");
+ if (!outDir.exists()) outDir.mkdirs();
+ final double[][] values = {
+ {0.4, 0.7, 0.5, 0.8},
+ {0.5, 0.6, 0.65, 0.45},
+ {0.3, 0.55, 0.75, 0.6}
+ };
+ final WireframeBarPrismPlotter plotter = new WireframeBarPrismPlotter(680, 420, values);
+ plotter.renderScene();
+ final File out = new File(outDir, "wireframe_bar_prism.png");
+ try {
+ plotter.save(out, "png");
+ } catch (final IOException e) {
+ throw new RuntimeException("Failed to save prism chart", e);
+ }
+ }
+}