This pattern is a small exercise to getting initial contact with p5js.
The starting point for the pattern is quite straightforward.
First, what it is needed to be done is setting random values for the rows and columns and then getting the size for the triangles using the number of rows and the height of the window.
Considering these three values, rows, columns and size, is enough to start drawing a triangle or an inverter triangle if the number of the column is odd or even.
Finally, a random value indicates if we draw one triangle or four smaller triangles.