Skip to content

Instantly share code, notes, and snippets.

@erikfrey
Created September 3, 2010 00:25
Show Gist options
  • Save erikfrey/563193 to your computer and use it in GitHub Desktop.
Save erikfrey/563193 to your computer and use it in GitHub Desktop.
def colorcycle(steps):
colors = [colorsys.hsv_to_rgb(i / 1.1 / steps, 1, 1) for i in range(steps)]
return ['#%02x%02x%02x' % (r * 255, g * 255, b * 255) for r,g,b in colors]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment