The original title of this chapter in the Generative Design book is: Dumb agents. But I have changed that for this blog because I liked it better this way. The starting point for this chapter’s assignment was: During each drawing operation, one of the eight possible directions is randomly selected for the next step. Steps are made by adding or subtracting a predetermined value (step size) to the current position’s coordinates. The circle is finally drawn at the new position. This is how it was described in the Generative Design Book. This chapter uses two programs. And here is the code and image for the first program.
As a first challenge I inverted everything. Background from white to black. The (stupid) agent is now displayed in white.
Introduced no fill. Added a stroke to the ellipses with a very low transparency level.
Replaced the ellipses with rectangles.
This example grows rather slow because it has a very low transparency. And instead of ellipses I used a quarter of an ellipse. Wow! I now see that I have made a mistake. When you press the backspace or delete key it erases the image. That’s what it supposed to do but it makes the background white instead of black.
Replaced the arcs by rectangles.
And here is the original code and image for the second program.
Changed that mistake when clearing the image that everything turns white. If you press the backspace or delete key you end up with a black background. Enlarged all ellipses. And when you hit the 1, 2 or 3 key you get different colors after 100 ellipses are displayed. I also commented out some lines. So the agents will now only walk in the NORTH and NORTHEAST directions.
Commented out some other program lines. So the agents will now walk only in the NORTH, EAST or SOUTHEAST directions.
In this version the agents will only walk in the NORTH, EAST and SOUTH directions.
Here the agents travel NORTH, SOUTHWEST, WEST or NORTHWEST.
And as a last try the agents travel only NORTH, EAST, WEST or NORTHWEST
I thought that I could get more out of the program. So I continued a little until I thought the program developed a little different. So I changed the background color of the agents into shades of green. And around each 400th agent it displays an agent without transparency.
Changed the background color of the agents into shades of red.
Commented out some lines. Agents now only stumble NORTH, EAST, SOUTHEAST, SOUTH, WEST and NORTHWEST.
Commented out some other lines. The agents are now running in the NORTH, EAST, SOUTHWEST and WEST direction.
Removed all comment-out lines. Made the background agents shades of blue. And introduced some randomness in the diameter of the agents (the ones which are displayed without any transparency).
Again I exaggerated the ellipses. But in this case vertical instead of horizontal.
Here I exaggerated the ellipses in both horizontal and vertical ways.
Here I used horizontal and vertical ellipses to get a cross-like image. Rotated some ellipses for some 45 degrees and one other for 135 degrees.
Well I think I could continue for a while but I would like to stop here with the stupid agents. I will continue with the next chapter about intelligent agents. Lets see where we end up.