SHARE
TWEET

Untitled

a guest Jun 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function randomColor() {
  2.     var h = Math.floor(Math.random() * 361);
  3.     var s = Math.floor(Math.random() * 101);
  4.     var l = Math.floor(Math.random() * 101);
  5.     return "hsl(" + h + ', ' + s + '%' + ', ' + l + '%' + ")";
  6. }
  7.      
  8. function changeColors(color){
  9.     //loop through all squares
  10.     for(var i = 0; i < squares.length; i++){
  11.         //change each color to match given color
  12.  
  13.     }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top