hue my oiter

This commit is contained in:
legop3
2025-12-21 05:28:00 -05:00
parent 9c3dbfebcb
commit 81a8c35873
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -570,12 +570,12 @@ function buildSegments({ count, totalSpan, gap, startAngle }) {
return segments;
}
const LIGHT_BUMP_MAX = 2000; // easy sensitivity tuning for light bumps
const LIGHT_BUMP_SENSITIVITY = 0.18; // increase to spin through hues faster
function lightBumpColor(value) {
if (value == null || value <= 0) return '#000000';
const t = clamp01(value / LIGHT_BUMP_MAX);
const hue = 140 - t * 80; // greenish toward amber
const lightness = 15 + t * 55;
const hue = (value * LIGHT_BUMP_SENSITIVITY) % 360; // cycles through the whole spectrum
const t = clamp01(value / 3000); // controls lightness only
const lightness = 20 + t * 50;
return `hsl(${hue} 90% ${lightness}%)`;
}