Skip to content

Instantly share code, notes, and snippets.

View lyntco's full-sized avatar

Lyn Cooper lyntco

  • Sydney Australia
View GitHub Profile
let disco, playing = false;
const dots = document.getElementsByTagName('rect');
const box = document.getElementsByTagName('g')[0];
const getRandomNumber = () => {
return Math.floor(Math.random() * 255) + 1;
};
const getRandomCol = () => {
return `rgb(${getRandomNumber()}, ${getRandomNumber()}, ${getRandomNumber()})`;