draw a new line at the end of last line
in
Programming Questions
•
2 years ago
hi – i'm quite new to processing and have come accross a simple problem i'm not able to solve.
i would like to draw a very very simple random tree whereby a random line is drawn, followed by a next random line who's starting coordinates equal the ending coordinates of the last line, so that an endless, jagged line is drawn.
how can i loop the code, so that it always draws a new line linked up to the last line?
i'd be very greatful for any help or ideas.
i would like to draw a very very simple random tree whereby a random line is drawn, followed by a next random line who's starting coordinates equal the ending coordinates of the last line, so that an endless, jagged line is drawn.
how can i loop the code, so that it always draws a new line linked up to the last line?
i'd be very greatful for any help or ideas.
2