Converting string/integer to tone

I'm working on a function where the player can make enter a set of values to form a window colour. As it is, I've gotten it to the point where the characters are formatted correctly, all I have to do is convert the string into a tone but I don't know how to do that. I know var.to_i is convert to integer and var.to_s is convert to string but from experience, var.to_t isn't convert to tone. What is it? Please help. Thanks.
Tone is an object that has 4 parts - red, green, blue and alpha.


You would need 3 or 4 variables (4 if you want alpha).


Tone.new($game_variables[1], $game_variables[2], $game_variables[3], $game_variables[4])
Tone is an object that has 4 parts - red, green, blue and alpha.


You would need 3 or 4 variables (4 if you want alpha).


Tone.new($game_variables[1], $game_variables[2], $game_variables[3], $game_variables[4])

I feel so horrible only seeing this now after figuring it out on my own, but thank you.

Original thread: https://forums.rpgmakerweb.com/threads/converting-string-integer-to-tone.39773/