projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allretweet
[rainbowstream.git]
/
rainbowstream
/
colors.py
diff --git
a/rainbowstream/colors.py
b/rainbowstream/colors.py
index 5d49096a861727044b9e617268f9e6023d745499..4b8ab2c775366eea73e8a12667cb5760f4fc715e 100644
(file)
--- a/
rainbowstream/colors.py
+++ b/
rainbowstream/colors.py
@@
-3,7
+3,6
@@
import itertools
from functools import wraps
from termcolor import *
from pyfiglet import figlet_format
from functools import wraps
from termcolor import *
from pyfiglet import figlet_format
-from functools import reduce
grey = lambda x: colored(x, 'grey', attrs=['bold'])
red = lambda x: colored(x, 'red', attrs=['bold'])
grey = lambda x: colored(x, 'grey', attrs=['bold'])
red = lambda x: colored(x, 'red', attrs=['bold'])
@@
-73,11
+72,11
@@
def cycle_color(s):
return next(cyc)(s)
return next(cyc)(s)
-def ascii_art():
+def ascii_art(
text
):
"""
Draw the Ascii Art
"""
"""
Draw the Ascii Art
"""
- fi = figlet_format(
'Rainbow Stream'
, font='doom')
+ fi = figlet_format(
text
, font='doom')
print('\n'.join(
[next(cyc)(i) for i in fi.split('\n')]
)
print('\n'.join(
[next(cyc)(i) for i in fi.split('\n')]
)