From e3d764a3b8daa1050e5dd587283d5c46ceeec01d Mon Sep 17 00:00:00 2001 From: Johnny322 Date: Tue, 10 Feb 2026 17:01:37 +0100 Subject: [PATCH] This was also pretty cool. Try to make length logarithmic --- src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 613ef9b..a21c86b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -457,7 +457,8 @@ export default { let bandSum = 0 for (let j = start; j < end; j += 1) bandSum += freq[j] const avg = bandSum / Math.max(1, end - start) / 255 - const shaped = Math.pow(Math.min(1, avg * 1.4), 1.6) + const amplified = Math.min(1, avg * 1.2) + const shaped = 1 - Math.pow(1 - amplified, 2.5) this.tentacleLevels[i] = this.tentacleLevels[i] * 0.6 + shaped * 0.4 }