import math
gradient = ('F20904', 'F86800', 'FBD101', '5BFF00', '6677FF', '0000C7', '6611FF')
def gradientmadness(text):
leng = len(text)
output = ''
if leng < 7:
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 / 7.0))
for i in range(1, 8):
output += text[(i-1)*size:i*size] + '</c>'
return output
gradientmadness.command="gradientify"
#usage regex replace ^(.*)$ -> gradientify(\1)
save it as gradient.py put in the "quirks" folder in Pesterchum.
You have to put (.*) into the Regexp box, then gradientify(\1) into Replace with box.