Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
samuelturnercox
samuelturnercox's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Bouncing Text
[1 Reply]
12-Mar-2013 08:06 AM
Forum:
Programming Questions
Trying to create a small animation within processing where the tweets will bounce across the page in a walking manner. Anyone know how to achieve this? Here's what I have so far...
class WalkingTweet {
String tweetText;
float x = -50;
int speed = 3;
WalkingTweet(String tempTweetText)
{
//store the tweet text
tweetText = tempTweetText;
println("This is a class speaking: "+ tweetText);
}
void move(){
fill(71, 72, 104);
rect(0, 0, width, height);
fill(255, 255, 255);
textSize(20);
text(tweetText, x, 470);
x += speed;
}
}
«Prev
Next »
Moderate user : samuelturnercox
Forum