title: constantely changing background color, based on time of day
body: <p>I am looking to write a script which:</p>
  
  <ol>
  <li>Constantly changes the background color every 1 second.</li>
  <li>When you first access the webpage the starting color is set based on the time of day. So if I access the website at: 7am (or close to that time) everyday it will always be a share of red no matter if I have had my browser open for 10hours.</li>
  </ol>
  
  <p>How could I do this without loads of IF statements? </p>
  
  <p>Looking here: <a href="https://stackoverflow.com/a/1455177/560287">https://stackoverflow.com/a/1455177/560287</a> it says there are 16776960 different colors, I dont need that many but how could I reduce this into a <code>setInterval</code> so it fades through the colors of a rainbow every second?</p>