Draw line over and over ...
in
Programming Questions
•
2 years ago
Hi.
This program draws a line from left to right. How do i get the program to do it over and over again???
I mean when line reach right side it clears the line, and starts to draw the line for left to right again???
int a = 1;
void setup() {
size(400,400);
background(0,25,0);
}
void draw() {
int b = a++;
stroke(255,0,0);
line(0,200,b,200);
}
Rgd. Fuzz the newbee...
1