Animating Drawings
in
Programming Questions
•
2 years ago
hey guys
wanted to create a separate post for this as although its the same sketch as my last post its a completely different query. I made the drawing program below, however instead of the lines simply appearing instantly, i want them all to be drawn as though it were a film of someone drawing them all simultaneously instead of an instant drawing. so that it lasted maybe 5 minutes instead of milliseconds. any help with this would be much appreciated, just not really sure what search terms to use to get anything helpful.
many thanks
Ditchweed
- float[] dotx;
- float[] doty;
- size(screen.width,720);
- smooth();
- strokeWeight (0.2);
- background (255);
- dotx = new float [50];
- doty = new float [50];
- for (int i=0; i < 50; i++){
- float x=random(0,width);
- float y=random(0,height);
- dotx[i] = x;
- doty[i] = y;
- point(x,y);
- }
- for (int i=0; i<50; i++){
- for (int j=0; j<50; j++) {
- line (dotx[i],doty[i],dotx[j],doty[j]);
- }
- }
1