Skip to content

Commit adf34f0

Browse files
authored
Merge pull request #112 from ap0ught/copilot/fix-mathcode-transparency
fix(config): reduce raindropLength in mathcode/mathcode-3d to restore transparency
2 parents 37f2b82 + 7d26c97 commit adf34f0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

js/config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,9 @@ export const versions = {
665665
{ color: hsl(0.56, 1.0, 0.8), at: 0.9 },
666666
{ color: hsl(0.57, 1.0, 1.0), at: 1.0 },
667667
],
668-
raindropLength: 1.2,
668+
// Short enough that one full brightness cycle is always visible across the column
669+
// (numColumns * 0.01 / raindropLength > 1), ensuring dark gaps between glyphs.
670+
raindropLength: 0.45,
669671
glyphRandomFlip: true,
670672
},
671673

@@ -682,7 +684,10 @@ export const versions = {
682684
animationSpeed: 0.75,
683685
cycleSpeed: 0.045,
684686
fallSpeed: 0.55,
685-
raindropLength: 0.55,
687+
// Match classic 3d raindropLength so dark gaps are always visible.
688+
// For this preset's numColumns: 44, numColumns * 0.01 / raindropLength = 1.47 cycles;
689+
// trinity/bugs share raindropLength: 0.3, but use different numColumns.
690+
raindropLength: 0.3,
686691

687692
// Keep 3D "tunnel" clean.
688693
isPolar: false,

0 commit comments

Comments
 (0)