We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ebc725 commit 393a472Copy full SHA for 393a472
1 file changed
pwa/components/con/speakers/SpeakerImage2025.tsx
@@ -11,11 +11,15 @@ interface SpeakerImageProps {
11
}
12
13
function nameToAngle(name: string): number {
14
+ const nameToHash = name.substring(0, 12);
15
+ console.log(nameToHash);
16
let hash = 0;
- for (let i = 0; i < name.length; i++) {
- hash += name.charCodeAt(i);
17
+ for (let i = 0; i < nameToHash.length; i++) {
18
+ hash += nameToHash.charCodeAt(i);
19
20
let angle = hash % 360;
21
22
+ console.log(angle);
23
24
const forbiddenZones: [number, number][] = [
25
[60, 120],
0 commit comments