satureate my oiter

This commit is contained in:
legop3
2025-12-21 05:33:21 -05:00
parent e334246cef
commit d4d6f0674d
3 changed files with 8 additions and 10 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-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title> <title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-CZl1S0vQ.js"></script> <script type="module" crossorigin src="/assets/index-DBT3txYl.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BpKtN3Ry.css"> <link rel="stylesheet" crossorigin href="/assets/index-BpKtN3Ry.css">
</head> </head>
<body> <body>
+1 -3
View File
@@ -574,9 +574,7 @@ const LIGHT_BUMP_SENSITIVITY = 1; // increase to spin through hues faster
function lightBumpColor(value) { function lightBumpColor(value) {
if (value == null || value <= 0) return '#000000'; if (value == null || value <= 0) return '#000000';
const hue = (value * LIGHT_BUMP_SENSITIVITY) % 360; // cycles through the whole spectrum const hue = (value * LIGHT_BUMP_SENSITIVITY) % 360; // cycles through the whole spectrum
const t = clamp01(value / 3000); // controls lightness only return `hsl(${hue} 100% 60%)`; // fully saturated, bright
const lightness = 20 + t * 50;
return `hsl(${hue} 90% ${lightness}%)`;
} }
function cliffColor(value, active) { function cliffColor(value, active) {