I am essentially finished with the Learning Processing Manual and would like to go deeper into the processing language. In order to do so I need more information about constructing objects and apparently there is a topic known as "classes" that was not even covered in the book. If you know of a space online that will impart this type of wisdom to me I would be eternally grateful. I am looking for a post-Learning Processing by Daniel Shiffman book.
I am an english literature student teaching myself computer programming and this processing language seems like a lovely place to start. I am roughly 120 pages through Learning Processing , which is very well written, and I have the following problem. This is also my first post to the forum ... so hello ...
I would like to know why my first function "jiggle" is only applied to the first instance of "square" on the far left side. Why isn't my function "jiggle" applied to every instance of "square" in the following code? Thank you so much in advance if you can assist.
Square[] squares = new Square[10];
void setup() {
size(500,500);
smooth();
for (int i = 0; i < 10; i++) {
squares[i] = new Square(i*50,0,50,500);
}
}
void draw() {
background(255);
for (int i = 0; i < 10; i++) {
squares[i].jiggle();
squares[i].display();