Skip to content

Commit 5c654dd

Browse files
committed
style(inspiration): 脉冲插值起点同步磷光蓝,修复首环旧青色残留
1 parent f3795c4 commit 5c654dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎client/src/features/inspiration/components/PulseAnimation.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ interface PulseAnimationProps {
2727
function ringColor(index: number, total: number): string {
2828
const t = total <= 1 ? 0 : index / (total - 1);
2929
// 青: rgba(74, 155, 217, 0.6) → 琥珀: rgba(245, 158, 11, 0.4)
30-
const r = Math.round(34 + (245 - 34) * t);
31-
const g = Math.round(211 + (158 - 211) * t);
32-
const b = Math.round(238 + (11 - 238) * t);
30+
const r = Math.round(74 + (245 - 74) * t);
31+
const g = Math.round(155 + (158 - 155) * t);
32+
const b = Math.round(217 + (11 - 217) * t);
3333
const a = 0.6 + (0.4 - 0.6) * t;
3434
return `rgba(${r}, ${g}, ${b}, ${a})`;
3535
}

0 commit comments

Comments
 (0)