Merge pull request #967 from GLolol/filter/better-rainbow

Filter: better colour selection for 'rainbow'
This commit is contained in:
Valentin Lorentz 2014-12-22 00:18:33 +01:00
commit 5cc9170023
1 changed files with 2 additions and 1 deletions

View File

@ -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]