We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm basically trying to recreate the way the text moves at 1:42 in this video: youtube.com/watch?v=J-l4-QlV4Cs
I tried sine functions but everything would overlap, and it was really hard to get color into everything. I'm pretty experienced, but this is a hard one. If anyone can help me or give me some code, thank you.
Answers
step one: the word "Greetings"
but you probably mean the horizontal movement
Step 2: Here is the horizontal back and forth movement
I tried both pieces of code and I have two questions now:
For the greetings one, how would I get it to loop after it's went off screen completely?
The second part with the text, I tried adding another piece of text to it and having location.y+25 and that did work fine, however they were both moving at the same time. I'm trying to get each one moving with a slight delay that the other.
Thanks for your help!
1.
It would be something like
if(location.x<-100)location.x=width-100;
in the methodupdateBall()
2.
I tried the code, and I messed around with the values until I got something similar. I see that each piece of the string has a random value for strength going back and forth. One problem is that it's in the middle of the screen. I kept changing everything but I couldn't get it to start at another point. Another problem is that they are just moving with different forces. I'm trying to get it so that they move after each other with a delay. In the video, the pieces of text aren't moving at random strengths, they are moving in delay, synchronized with each other. I'm starting to think that this is impossible in Processing.
Thanks for the help so far though!
of course it's possible in processing
we just have to agree how it's working
Do you think the speed of each line of each pendulum/word is the same?
Do you think the radius is the same?
What do you think is the formula to bring the angle of sin in sync with previous line?
You can only program it if you know how it works.
new version with less random: