I'm working on solidifying my understanding of OOP and trying out the use of Perlin Noise. Both of these concepts were learned in Shiffman's book on learning processing.
I was trying to figure out if it's better to store the vertex points of each shape in a 2d array so I can keep the x and y locations separate, or if I should just store the 4 points in a regular array with a length of 8, and read every other one as an x coordinate or y coordinate. I ended up using a one dimensional array because it seemed easier to manipulate them. I got code to work using a 2d array as well, but the numbe
I was playing with "the snake" sketch from Daniel Shiffman's Learning Processing book, and trying to get each of the segments to rotate individually. I dropped a few functions that I didn't quite understand in the wrong place in an effort to figure out how they work and this is what I got. oops. Move the mouse around.
I suspect that I'll have to make a separate loop to iterate through each rect() and increment the rotation by 1 radian on each draw cycle.