We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c340641 commit 14a1a9eCopy full SHA for 14a1a9e
index.html
@@ -541,9 +541,9 @@ <h2 id="installation" class="lang" data-en="Installation and Getting Started" da
541
const z = acceleration.z || 0;
542
543
// 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);
+ const red = Math.min(Math.abs(x * 50), 255);
+ const green = Math.min(Math.abs(y * 50), 255);
+ const blue = Math.min(Math.abs(z * 50), 255);
547
548
// Create a dynamic RGB color
549
const backgroundColor = `rgb(${Math.floor(red)}, ${Math.floor(green)}, ${Math.floor(blue)})`;
0 commit comments