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
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-D_fgZoDJ.js"></script>
<script type="module" crossorigin src="/assets/index-CXydk_Ez.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BpKtN3Ry.css">
</head>
<body>
+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}%)`;
}