Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_color_scale(steps, R=None, G=None, B=None, _min=0, _max=200):
- scale = []
- for n in range(_min, _max, int(_max/steps)):
- cc = (hex(n)[2:]).upper()
- if len(cc) == 1: cc = "0%s"%cc
- r = R or cc
- g = G or cc
- b = B or cc
- scale.append("#%s%s%s"%(r, g, b))
- return scale
Add Comment
Please, Sign In to add comment