Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str = get_string("","")
- r = 15
- g=0
- b=0
- mode = 1
- endstr = ""
- while(string_length(str)>1){
- color = int_to_hex(r)+int_to_hex(b)+int_to_hex(g)
- endstr += "[color=#"+color+"]"+string_char_at(str,1)+"[/color]"
- if(mode=1){
- g+=1
- if(g=15){mode+=1}
- }
- if(mode=2){
- r-=1
- if(r=0){mode+=1}
- }
- if(mode=3){
- b+=1
- if(b=15){mode+=1}
- }
- if(mode=4){
- g-=1
- if(g=0){mode+=1}
- }
- if(mode=5){
- r+=1
- if(r=15){mode+=1}
- }
- if(mode=6){
- b-=1
- if(b=0){mode+=1}
- }
- if(mode = 7){mode=1}
- str = string_copy(str,2,string_length(str)-1)
- }
- clipboard_set_text(endstr)
- game_end()
Add Comment
Please, Sign In to add comment