Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
giseth
giseth'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
Field Component.x is not visible!
[1 Reply]
22-Sep-2012 11:02 PM
Forum:
Programming Questions
Im trying to make a simple ellipse move from A to B, but keep getting this error ..
void setup() {
size(800, 600);
x = width / 2;
y = height / 2;
fill (#4060FF);
strokeWeight(2);
stroke(0);
smooth();
}
void draw() {
x += velX;
y += velY;
if (x+r >= width || x-r <= 0) {
velX = -velX;
}
if (y+r >= height || y-r <= 0) {
velY = -velY;
}
background(255);
ellipse(x, y, d, d);
}
«Prev
Next »
Moderate user : giseth
Forum