Test logarithmic
All checks were successful
On Push Deploy / deploy (push) Successful in 19s

This commit is contained in:
Johnny322
2026-02-10 17:03:33 +01:00
parent e3d764a3b8
commit 52e2a47bc9

View File

@@ -457,8 +457,8 @@ export default {
let bandSum = 0 let bandSum = 0
for (let j = start; j < end; j += 1) bandSum += freq[j] for (let j = start; j < end; j += 1) bandSum += freq[j]
const avg = bandSum / Math.max(1, end - start) / 255 const avg = bandSum / Math.max(1, end - start) / 255
const amplified = Math.min(1, avg * 1.2) const amplified = Math.min(1, avg * 1.25)
const shaped = 1 - Math.pow(1 - amplified, 2.5) const shaped = Math.log1p(amplified * 9) / Math.log(10)
this.tentacleLevels[i] = this.tentacleLevels[i] =
this.tentacleLevels[i] * 0.6 + shaped * 0.4 this.tentacleLevels[i] * 0.6 + shaped * 0.4
} }