Refine thonking slide
authorCameron Ball <cameron@cameron1729.xyz>
Sun, 15 Mar 2020 18:47:51 +0000 (02:47 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Sun, 15 Mar 2020 18:47:51 +0000 (02:47 +0800)
index.html

index eccba6c..f98421d 100644 (file)
  usedPositions = [];
  for (a = 0; a < thonkings.length; a++) {
      thing = Math.floor(Math.random() * 4) + 1;
-     randomnessX = -(Math.round(Math.random() * 50) + 1);
+     randomnessX = -(Math.round(Math.random() * 100) + 1);
      randomnessY = -(Math.round(Math.random() * 50) + 1);
 
      while (usedPositions.includes(thing)) {
          case 1:
              thonkings[a].style.left = randomnessX + 'px';
              thonkings[a].style.top = randomnessY + 'px';
-             thonkings[a].children[0].style.transform = 'rotate(-45deg) scale(1, 1.5)'
+             thonkings[a].children[0].style.transform = 'rotate(-40deg) scale(1, 1.5)'
              thonkings[a].classList.add("shake-constant");
              thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]);
              break;
              thonkings[a].style.right = randomnessX + 'px';
              thonkings[a].style.top = randomnessY + 'px';
              thonkings[a].classList.add("shake-constant");
-             thonkings[a].children[0].style.transform = 'rotate(45deg) scale(1, 1.5)'
+             thonkings[a].children[0].style.transform = 'rotate(40deg) scale(1, 1.5)'
              thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]);
              break;
          case 3:
              thonkings[a].style.right = randomnessX + 'px';
              thonkings[a].style.bottom = randomnessY + 'px';
              thonkings[a].classList.add("shake-constant");
-             thonkings[a].children[0].style.transform = 'rotate(-225deg) scale(1, 1.5)'
+             thonkings[a].children[0].style.transform = 'rotate(-215deg) scale(1, 1.5)'
              thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]);
              break;
          case 4:
              thonkings[a].style.left = randomnessX + 'px';
              thonkings[a].style.bottom = randomnessY + 'px';
              thonkings[a].classList.add("shake-constant");
-             thonkings[a].children[0].style.transform = 'rotate(225deg) scale(1, 1.5)'
+             thonkings[a].children[0].style.transform = 'rotate(215deg) scale(1, 1.5)'
              thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]);
              break;
      }