Some recent changes and stuff

This commit is contained in:
RussellChamp committed 2016-01-06 14:08:25 -05:00
1 parent ebb5f2fe37
commit 86916fb5fa
18 files changed
+321 -30

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import random
def makeRainbow(word):
word = word or "RAINBOW"
output = ""
rb = ["5","7","8","3","12","13","6"]
bg = "01"
idx = random.randrange(0, len(rb))
for l in word:
if l == " ":
output += ' '
else:
output += "\x03" + rb[idx % len(rb)] + "," + bg + l
idx += 1
return output