@lokiyou/pi-nano-footer 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -83,7 +83,7 @@ Editor.prototype.render = function (width: number): string[] {
|
|
|
83
83
|
const [r, g, b] = rgb;
|
|
84
84
|
// 纯前景呼吸:当前色 + 峰值白色辉光,0.8s 周期
|
|
85
85
|
// 无背景阴影,避免生硬灯管感
|
|
86
|
-
const t = 0.5 + 0.5 * Math.sin(performance.now() /
|
|
86
|
+
const t = 0.5 + 0.5 * Math.sin(performance.now() / 191);
|
|
87
87
|
const bright = 0.35 + 0.65 * t; // 35%~100%
|
|
88
88
|
const glow = t * t * 0.45; // 0~0.45 白色 blend
|
|
89
89
|
const nr = Math.round(Math.min(255, r * bright + (255 - r) * glow));
|