Commit 5061b567 authored by Louis's avatar Louis
Browse files

Improve chart colors

parent 56a9481c
......@@ -24,9 +24,9 @@ def as_id(string):
def random_color(seed):
old_seed = random.random()
random.seed(seed)
rgb = colorsys.hsv_to_rgb(random.random(), 1, 1)
rgb = colorsys.hsv_to_rgb(random.random(), .5, .8)
random.seed(old_seed)
return ("#%02x%02x%02x" % tuple([int(value * 256) for value in rgb]))[:7]
return ("#%02x%02x%02x" % tuple([int(value * 255) for value in rgb]))
def _get_environment():
TEMPLATEDIR = os.path.join(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment