Private
Public Access
1
0

more color scheme

This commit is contained in:
Sander Roosendaal
2017-07-10 18:43:52 +02:00
parent 42578702ba
commit 5105834873
2 changed files with 1 additions and 2 deletions

View File

@@ -1 +0,0 @@
E408191@CZ27LT9RCGN72.22500:1499438870

View File

@@ -3606,7 +3606,7 @@ def multiflex_view(request,userid=0,
groupcols *= 100. groupcols *= 100.
rgb = [colorsys.hsv_to_rgb(float(x/100.), 1.0, 1.0) for x in groupcols] rgb = [colorsys.hsv_to_rgb(float(x/100.), 1.0, 1.0) for x in groupcols]
rgb = [colorsys.hsv_to_rgb(0.6-0.3*float(x/100.), 0.4+0.4*float(x/100.), 1.0) for x in groupcols] rgb = [colorsys.hsv_to_rgb(0.5-0.3*float(x/100.), 0.4+0.4*float(x/100.), 1.0) for x in groupcols]
# rgb = [colorsys.hsv_to_rgb(0.1+0.8*float(x/100.), 0.5, 0.5-0.2*float(x/100.)) for x in groupcols] # rgb = [colorsys.hsv_to_rgb(0.1+0.8*float(x/100.), 0.5, 0.5-0.2*float(x/100.)) for x in groupcols]
RGB = [(int(255.*r),int(255.*g),int(255.*b)) for (r, g, b) in rgb] RGB = [(int(255.*r),int(255.*g),int(255.*b)) for (r, g, b) in rgb]
colors = ["#%02x%02x%02x" % (r, g, b) for (r, g, b) in RGB] colors = ["#%02x%02x%02x" % (r, g, b) for (r, g, b) in RGB]