mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Merge pull request #967 from GLolol/filter/better-rainbow
Filter: better colour selection for 'rainbow'
This commit is contained in:
commit
5cc9170023
@ -401,7 +401,8 @@ class Filter(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
text = text.decode('utf-8')
|
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]
|
L = [self._color(c, fg=next(colors)) for c in text]
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
L = [c.encode('utf-8') for c in L]
|
L = [c.encode('utf-8') for c in L]
|
||||||
|
Loading…
Reference in New Issue
Block a user