diff --git a/Sources/MatrixScreenSaver/NativeMatrixRenderer.swift b/Sources/MatrixScreenSaver/NativeMatrixRenderer.swift index 72176da..ef2927c 100644 --- a/Sources/MatrixScreenSaver/NativeMatrixRenderer.swift +++ b/Sources/MatrixScreenSaver/NativeMatrixRenderer.swift @@ -1293,12 +1293,16 @@ final class NativeMatrixRenderer { } if minimum + 1 < levels { + // The xterm cube quantizes each channel to 6 steps (0, 95, 135, + // 175, 215, 255). A 0.95 cap still rounds back up to 255, so the + // highlight must stay below 0.9 to avoid pure white. + let highlightCap = 0.89 for level in (minimum + 1)..