Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randomColor() {
- var h = Math.floor(Math.random() * 361);
- var s = Math.floor(Math.random() * 101);
- var l = Math.floor(Math.random() * 101);
- return "hsl(" + h + ', ' + s + '%' + ', ' + l + '%' + ")";
- }
- function changeColors(color){
- //loop through all squares
- for(var i = 0; i < squares.length; i++){
- //change each color to match given color
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement