meh – Interruptions

Link to p5js: https://editor.p5js.org/meij_who/sketches/HyEFhymD6

Observations:

  1. The artwork is square.
  2. The artwork consists of many short black lines, on a white background.
  3. The lines all have the same length.
  4. The lines are arranged in a closely packed grid.
  5. The lines have a range of random rotations.
  6. The lines rotate around their own centers.
  7. The rotations of lines tend to be close to 90 degrees.
  8. The positions and sizes of the blank areas are random.
  9. The blank areas tend to cluster.

Process:

I approached to the problem first by creating a grid of short lines, and then rotate them in random angles in certain range. I then used noise to create a range to identify the area where to leave empty, and looped through the lines to find out the lines that are within the range. If the line is not within the range, draw the line in its rotation. Finally, make the image clickable to change frame.

During the process I found that it was really helpful to use translate(), push() and pop() for line rotation around its center and to use noise(x, y, z) (especially using z for change to different noise).

Compared to the original image, my images can be improved by increasing the amount of detail by making var inc a larger number.