Skip to content

Commit 14a1a9e

Browse files
committed
Update index.html
1 parent c340641 commit 14a1a9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ <h2 id="installation" class="lang" data-en="Installation and Getting Started" da
541541
const z = acceleration.z || 0;
542542

543543
// Normalize the acceleration values
544-
const red = Math.min(Math.abs(x * 20), 255);
545-
const green = Math.min(Math.abs(y * 20), 255);
546-
const blue = Math.min(Math.abs(z * 20), 255);
544+
const red = Math.min(Math.abs(x * 50), 255);
545+
const green = Math.min(Math.abs(y * 50), 255);
546+
const blue = Math.min(Math.abs(z * 50), 255);
547547

548548
// Create a dynamic RGB color
549549
const backgroundColor = `rgb(${Math.floor(red)}, ${Math.floor(green)}, ${Math.floor(blue)})`;

0 commit comments

Comments
 (0)