Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- gradient = ('F500F5', 'EB00EB', 'E100E1', 'D700D7', 'D700D7', 'CD00CD', 'C300C3', 'B900B9', 'AF00AF', '000000')
- def gradientmadness(text):
- leng = len(text)
- output = ''
- if leng < 10:
- for i in range(0, leng):
- output += '<c=#%s>' % gradient[i]
- for i in range(0, leng):
- output += text[i] + '</c>'
- else:
- output += '<c=#'
- output += '><c=#'.join(gradient)
- output += '>'
- size = int(math.ceil(leng / 10.0))
- for i in range(1, 10+1):
- output += text[(i-1)*size:i*size] + '</c>'
- return output
- gradientmadness.command="ccc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement