I started making variations on this program a year ago. But I did not manage to design something what I thought would make sense. So I started again a few weeks ago. In the original program P_1_1_1_01 there is a grid created by using two nested for loops. In the outer loop, the y-position is increased, step by step. The inner loop then draws a line by increasing the value for the rectangle’s x-position, step by step, until the entire width is processed. The step size is set by the value of the mouse position and is located in the variables stepX and stepY. It also determines the length and width of the rectangles. I copied this text from the Generative Design book. By the way… if you don’t want to go through all of my descriptions of every program and you would just like to see all Generative Design Variations made until present than follow this link.
All Generative Design Variations
I have to thank the member and moderator GoToLoop of the Processing Forum for helping me out. I had some problems displaying the output of the programs on screen. I did a test this morning and one program took more than one hour to display. That seems to be solved now. I still have to check what went wrong.
My first variation was to increase the size of the display window. For the rest everything is the same as in the original program. I only have put smaller rectangles on top with a brightness of 50%. In that way I have created bright lines.
This is the original program changed into a kind of random paint version. It actually generates random hue colors in the range of 0 – 800. And it generates random saturation in the range of 0 – 100.
Removed the rectangles and used lines to create cross-like figures. Also used the map function to increase (or decrease) the weight of the strokes.
Shortened one line of the cross to get a kind of y-shape.
Made the cross lines even. But now they touch each other nearly.
Lines are now positioned all in the same direction. Only the bottom lines make use of the color spectrum. On top of every colored line a black line is positioned.
The same lines as in the previous sketch. Changed the stroke-cap from round to square.
Some weird things happen here. There is repetition in the code on two locations but it seems to make a difference for the pattern. So I left it in. In return it gives a quite odd pattern.
A very simple version. Using only rectangles. But it makes nice variations though.
This variation creates a grid of multiple hexagons or patagonians.
A moon shaped object in a colored spectrum grid.
A composition of rectangles. Needed to switch on stroke-cap to avoid nasty artifacts in the image.