Assertations:
- The artwork is square
- The artwork consists of many short black lines, on a white background
- The lines all have the same length
- The lines seem to be generated randomly
- There is an occasional random space where the lines don't spawn
- The size of these spaces are random
- The line generation stays in the shape of a square (likely because of some margin).
- The outermost points on the outermost lines start on the edge of this square
- Lines typically intersect with each other
- More lines are vertical than horizontal
The Work:
https://editor.p5js.org/MoMar/sketches/Et7sHwo0Y
Process
After reading my assertions, I had a question: "How do I generate equal lines?" Apparently, all you need is a circle. I randomly generated my origin points and used this formula to create a start point for my line. To find the endpoint, I subtracted the midpoint from the start point. Then, I added this value to the midpoint and got the endpoint.
The next question was "How do I generate random empty spaces?" The answer: use noise.
The final question "When do I place the line?" was easy to answer. I just needed to place a line above a certain noise value