Hey all, this is a weird question, but I am really struggling on some calculations and I'm wondering if anyone has some insights. For context, I'm making a text generation system for my game that progressively displays text and has character effects, such as wavy text using sine/cosine waves and changing rainbow gradients. You know, the standard type stuff.
What I'm struggling on is the math when displaying the text at different intervals. For example, the default rate is one character displayed every two frames. If we're adding a value of four to the sine wave for a wavy text effect every frame, then that would be a separation of 8 degrees between each letter displayed. That's fine if we're displaying the text at a rate of 1 letter every 2 frames, but what if the text is being displayed slower or faster? What if we're displaying 1 letter every 4 frames or 2 letters every 1 frame?
I'm trying to figure out some math that will allow me to still have that 8 degrees of separation between each letter regardless of text speed, but I'm really struggling here. Any suggestions would be awesome, thanks!