Guest User

Untitled

a guest
Jul 3rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. str = get_string("","")
  2.  
  3. r = 15
  4. g=0
  5. b=0
  6. mode = 1
  7.  
  8. endstr = ""
  9. while(string_length(str)>1){
  10. color = int_to_hex(r)+int_to_hex(b)+int_to_hex(g)
  11. endstr += "[color=#"+color+"]"+string_char_at(str,1)+"[/color]"
  12.  
  13. if(mode=1){
  14. g+=1
  15. if(g=15){mode+=1}
  16. }
  17. if(mode=2){
  18. r-=1
  19. if(r=0){mode+=1}
  20. }
  21.  
  22. if(mode=3){
  23. b+=1
  24. if(b=15){mode+=1}
  25. }
  26. if(mode=4){
  27. g-=1
  28. if(g=0){mode+=1}
  29. }
  30.  
  31. if(mode=5){
  32. r+=1
  33. if(r=15){mode+=1}
  34. }
  35. if(mode=6){
  36. b-=1
  37. if(b=0){mode+=1}
  38. }
  39. if(mode = 7){mode=1}
  40. str = string_copy(str,2,string_length(str)-1)
  41. }
  42. clipboard_set_text(endstr)
  43. game_end()
Add Comment
Please, Sign In to add comment