Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. step 1: copy and paste this into notepad!
  2.  
  3. import math
  4. gradient = ('#9F98E8','#9FA4C4')
  5. def gradientmadness(text):
  6. leng = len(text)
  7. output = ''
  8. if leng < 2:
  9. for i in range(0, leng):
  10. output += '<c=#%s>' % gradient[i]
  11. for i in range(0, leng):
  12. output += text[i] + '</c>'
  13. else:
  14. output += '<c=#'
  15. output += '><c=#'.join(gradient)
  16. output += '>'
  17. size = int(math.ceil(leng / 2.0))
  18. for i in range(1, 2+1):
  19. output += text[(i-1)*size:i*size] + '</c>'
  20. return output
  21. gradientmadness.command="---"
  22.  
  23. step 2: replace the list on the second line with the list of colors you want to lose in reverse order! use hex codes WITHOUT the hash signs in front though. for example, to make a gradient going from #FF0000 to #0000FF:
  24. gradient = ('0000FF','000FFF','00FF00','FFF000','FF0000')
  25. ps!!: you can add as many colors as you want! but it's best to keep it 6-8 for best results!
  26.  
  27. step 3: replace the three instances of "♦" with the number of colors you have in your gradient list!
  28.  
  29. step 4: replace "♥" with whatever you want to name your quirk!
  30.  
  31. step 5: save your file as a .py file in C:\users\<name>\appdata\local\pesterchum\quirks, replacing <name> with your username. or just go find your pesterchum folder, go into quirks, and then go into wherever your username is.
  32.  
  33. ps!!: when saving it, save it as what you put for your ♥ part! it makes it way easier in the long run. and make sure you're not in "Text Documents (*.txt)", there SHOULD be a little dropdown menu next to "Save As Type" with "All Files" in it. click all files then just put in whatever you put in for the ♥ with .py next to it. something like "seafoamtoyellow.py" or whatever.
  34.  
  35. step 6: go to pesterchum and add a new regexp replace quirk. click "RELOAD FUNCTIONS" and you should see your function appear in the list. enter "^(.*)$" without the quotes into the regexp box and "♥(\1)" without quotes into the replace with box, changing "♥" to the name of your function!
  36.  
  37. step 7: click finish and test your quirk!
  38.  
  39. step 8: if it doesn't work, tell me.
  40. step 8a: if it works, you owe me three more smooches.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement