Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Louis
pypimonitor
Commits
5061b567
Commit
5061b567
authored
Mar 06, 2016
by
Louis
Browse files
Improve chart colors
parent
56a9481c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypistats/__main__.py
View file @
5061b567
...
...
@@ -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
*
25
6
)
for
value
in
rgb
]))
[:
7
]
return
(
"#%02x%02x%02x"
%
tuple
([
int
(
value
*
25
5
)
for
value
in
rgb
]))
def
_get_environment
():
TEMPLATEDIR
=
os
.
path
.
join
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment