Logical steps to make this happen?
in
Programming Questions
•
1 month ago
Hello,
I am in the process of learning Processing through setting myself little projects. I am picking up the syntax, but I am having trouble with thinking of the structure of programs...
I am using Twitter4j and a streaming code snippet available over here:
https://github.com/neufuture/SimpleTwitterStream
I have a listener that looks like this:
- StatusListener listener = new StatusListener() {
- public void onStatus(Status status) {
- println("@" + status.getUser().getScreenName() + " - " + status.getText());
- }
If I wanted to cause that to draw a rectangle, wait a little, then draw a text(tweet) for 5 seconds, and then once the tweet has disappeared, hide the rectangle , what would be the steps needed to make that happen?
I don't want anyone to write code for me, but rather explain how I'd need to do it, eg.
1. Put
status.getUser().getScreenName()
and
status.getText()
into global String variables
2. Write a displayTweets() function....
3. Etc.
Looking forward to hearing from anyone!
Cheers
- Roo
1