I have recently stumbled upon Processing. I have little experience of coding apart from some BASIC twenty-five years ago on my commodore 16 ( which I thoroughly enjoyed).
I have ordered the getting started book, but would like a little help to get me on my way.
I am very interested in creating 2d artworks based around repetition and change therefore Processing looks ideal.
I have got this far :
void setup(){
size (500,500);
smooth ();
background (0);
fill (255);
}
void draw(){
for (int x=0; x<=height; x += 100){
for (int y=0; y<=width; y += 100){
triangle (x, y, x+100, y+100, x, y+100);
}
}
}
I would very much like to know how to make changes sequentially to the triangles. i.e change the fill colour for each triangle in turn from left to right?
I would also like to rotate the triangles through, 90 degrees, 180 degrees, 270 degrees. I would like this rotation to randomly choose between one of these stated angles...
I have done some experiments and I keep making changes that affect entire rows or columns, or the colour of the whole lot. What I want to do is to apply a variable change to each individual triangle in turn left to right, top to bottom ( as you would read a page of text ).
I believe pushMatrix may be the way forward, but at the moment I think I am lacking a basic conceptual understanding.....
Can anyone help? Am I completely out of my depth ??