02-Interruptions
https://editor.p5js.org/clox/full/fmhoz0-qa
Process:
- First I observed the components of the original piece:
- uniform black lines distributed across a grid at their midpoint
- lines appear to rotate randomly around their midpoint
- lines are not always drawn
- the gaps in the line grid cluster
- Then I tried to break down each observation into steps to recreate this piece
- Made a looping function that defines the coordinates of the midpoints for each line
- Made a class for drawing a line
- Specified the attributes of that line making class:
- the line's midpoint
- the line's angle (randomly generated)
- the line's (ax,ay) and (bx,by) coordinates (calculated using angle and midpoint)
- Made a threshold for drawing a line (or not) using Perlin noise function in the for loop that draws the line by calling the line object
- I multiplied the Perlin noise value by 0.01 to amplify it
- I then chose a threshold that dictates whether a line should be drawn
- Finally I used the mousePressed function to refresh the canvas after a click