title: How do you add 100 colors using a loop into a turtle graphics design code
body: <p>I am trying to produce color effects that gradually change from dark to light or shift hue for an assignment, but I'm having trouble with figuring out how to put the loop code in for an RGB color that runs 100 different colors.</p>
  <p>Can anyone give me some pointers on how loop through many different colors?</p>
  <p>Here is the code I have so far:</p>
  <pre><code>import turtle
  turtle.setup(width=600, height=500)
  turtle.bgcolor(&quot;blue&quot;)
  turtle.reset()
  turtle.hideturtle()
  turtle.speed(0)
  for i in range(1000):
      turtle.forward(i)
      turtle.right(98)
  
  turtle.exitonclick()
  </code></pre>
  <p>PS. I suppose if I can get some help figuring out how to do the colors, I should probably take out the <code>BGCOLOR</code>.</p>