Skip to content

Commit 7a081f7

Browse files
committed
fix: adjust fading and streak speed parameters for improved visual effects
1 parent 2e58545 commit 7a081f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ascii-bg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
const BASE_A = 0.04; // base alpha of idle chars
5959
const SENT_ALPHA = 0.65; // alpha when a sentence is shown
6060
const SENT_HOLD = 180; // frames at full alpha before fading (~3s)
61-
const SENT_FADE = 0.008; // alpha lost per frame while fading
61+
const SENT_FADE = 0.016; // alpha lost per frame while fading
6262
const SENT_SPAWN_MIN = 240; // min frames between sentence spawns (~4s)
6363
const SENT_SPAWN_MAX = 480; // max frames between sentence spawns (~8s)
6464

6565
// Cloud-chamber streak tunables
66-
const STREAK_SPEED_MIN = 2.0; // cells per frame
67-
const STREAK_SPEED_MAX = 5.5;
66+
const STREAK_SPEED_MIN = 4.0; // cells per frame
67+
const STREAK_SPEED_MAX = 7.5;
6868
const STREAK_HEAD_A = 0.80; // alpha stamped at the head cell each frame
6969
const STREAK_DECAY = 0.055; // alpha lost per frame (trail ~15 frames)
7070
const STREAK_SPAWN_PROB = 0.022; // chance per frame to spawn a new streak

0 commit comments

Comments
 (0)