Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import colorsys
- def generateColors(n):
- """
- """
- colors = []
- step = 100 / n
- S = 50
- V = 50
- for T in range(0, 100, step):
- r, g, b = colorsys.hsv_to_rgb(T/100.0, S/100.0, V/100.0)
- colors.append((int(r*255), int(g*255), int(b*255)))
- return colors
- print generateColors(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement