Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kyletate
kyletate's Profile
1
Posts
2
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
unexpected token float
[4 Replies]
28-Mar-2012 07:25 AM
Forum:
Programming Questions
I dont understand why the unexpected token float error is coming up. Could someone please explain what i'm doing wrong.
Here is the code
float x = 0;
float a = 0;
void setup() {
size(500,300);
stroke(random(255),random(255),random(255));
}
void loop() {
x < width
float a = map(sin(a), -2, 2, 50, 200);
point(x,a);
x=x +1; // increase too fast
a=a + 0.5;
}
«Prev
Next »
Moderate user : kyletate
Forum