Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #Purple to Black
- PurpToBlack = ('000000','230024','360038','47004A','600063','79007D','910096','A500AB','B900BF','D400DB')
- def gradientpurpleblack(text):
- leng = len(text)
- output = ''
- if leng < 1:
- for i in range(0, leng):
- output += '<c=#%s>' % PurpToBlack[i]
- for i in range(0, leng):
- output += text[i] + '</c>'
- else:
- output += '<c=#'
- output += '><c=#'.join(PurpToBlack)
- output += '>'
- size = int(math.ceil(leng / 11.0))
- for i in range(1, 12):
- output += text[(i-1)*size:i*size] + '</c>'
- return output
- gradientpurpleblack.command="PurpToBlack"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement