noob question about plotting a curve
in
Programming Questions
•
1 year ago
Hi
I am very new to processing and I am trying to plot something like the following
Week shots player A
1 10
2 20
3 35
I want to plot something that gradually draws when the user see it sort of like an animation but not draw the entire curve in one go.
i tried using line & delay commands but it is not working. Is there a better way to do this?
void setup()
{
size(640, 600);
stroke(255);
}
{
size(640, 600);
stroke(255);
}
void draw()
{
background(51);
line(0,0,1,10);
{
background(51);
line(0,0,1,10);
delay(500);
line(1,10,2,20);
line(1,10,2,20);
delay(500);
line(2,20,3,35);
line(2,20,3,35);
1