Skip to content

Instantly share code, notes, and snippets.

@gulopine
Created February 19, 2012 20:17
Show Gist options
  • Save gulopine/1865562 to your computer and use it in GitHub Desktop.
Save gulopine/1865562 to your computer and use it in GitHub Desktop.
import colorsys
def get_colors(n, s=.5, v=.5):
for i in range(n):
yield colorsys.hsv_to_rgb(i * .15, s, v)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment