unexpected token float
in
Programming Questions
•
1 year ago
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;
}
1