title: Pygame ValueError: invalid color argument problem
body: <p>I am trying to make a rainbow of rectangles with pygame but I get a problem saying "ValueError: invalid color argument"</p>
  
  <pre><code>import pygame
  pygame.init()
  
  width = 400
  height = 400
  window_size = (width , height)
  screen = pygame.display.set_mode(window_size)
  
  colour = pygame.color.Color('#646400')
  
  row = 0
  done = False
  while not done:
      increment = 255 / 100
      while row &lt;= height:
          pygame.draw.rect(screen, colour, (0, row, width, row + increment))
          pygame.display.flip()
          if colour[2] + increment &lt; 255:
              colour[2] += increment
          row += increment
  
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              done = True
  pygame.quit()
  </code></pre>