mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Filter: better colour selection for 'rainbow'
This commit is contained in:
parent
d06d744f11
commit
3f60b28739
@ -401,7 +401,8 @@ class Filter(callbacks.Plugin):
|
||||
"""
|
||||
if sys.version_info[0] < 3:
|
||||
text = text.decode('utf-8')
|
||||
colors = utils.iter.cycle(['04', '07', '08', '03', '02', '12', '06'])
|
||||
colors = utils.iter.cycle(['05', '04', '07', '08', '09', '03', '11',
|
||||
'10', '12', '02', '06', '13'])
|
||||
L = [self._color(c, fg=next(colors)) for c in text]
|
||||
if sys.version_info[0] < 3:
|
||||
L = [c.encode('utf-8') for c in L]
|
||||
|
Loading…
Reference in New Issue
Block a user