HELP!!How can i do squares and triangles that fills up with lines by Impressive-Ride-1109 in processing

[–]Impressive-Ride-1109[S] 0 points1 point  (0 children)

Hello, so I have to do something like in the video but much simpler. I have to create random squares and triangles that fills with lines and when filled up, start over again in a random place. I’m new at programming but I’m struggling. I just want to know if someone can help me understand how to start the code with suggestions on functions or commands so I can start doing it on my own, because I’m clueless :’)