3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

relay_cb: remove dark gray from colours index

It's too hard to read on a dark background.
This commit is contained in:
James Lu 2016-09-19 21:56:12 -07:00
parent 8acdfc81c1
commit e0f56a157d

View File

@ -29,7 +29,7 @@ def color_text(s):
(sum of all characters).
"""
colors = ('02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
'12', '13', '14', '15')
'12', '13', '15')
digest = hashlib.md5(s.encode()).hexdigest()
digest = int(digest, base=16)
num = digest % len(colors)