I've been studying the book, Getting Started With Processing by Casey Reas and Ben Fry. And im learning custom shapes right now. But I had a question about the vertex function, since the book is so vague on it. Does the vertex() function work like connect the dots or how does it know to draw which line where? because it only uses 1 X and 1 Y value.
Thank you.
P.S.
it is an amazing book and anyone new to processing should pick it up right away!
So i am very new to processing and programing and my cousin is an expert, he has been giving me simple problems for me to solve and improve my knowledge in these areas. The most recent work he wants to see is a line print of the Fibonacci sequence, at least the first 50 numbers. As you can see what i have is very tedious and ugly. I know there has to be some way to loop the sequence without labeling everything. I don't really know how to ask but if anyone understands what I'm trying to do feedback would be much appreciated. Thank you!
int a = 0; int b = 1; int c = 1; int d = b+c; int e = c+d; int f = d+e; int g = e+f; int h = f+g; int i = g+h; int j = h+i; int k = i+j; int l = j+k; int m = k+l;