Kashyapa Week 2

For this assignment I picked the following image to recreate.

I decided to start by using a for loop to draw the long thin vertical lines first. I noticed that some lines were shorter than others and their starting positions on the y-axis slightly varied. Also, they were slightly to the right and the distance between each one of them was also slightly different for each line. To achieve these parts of the image, I used a for loop using i to change where the lines appear and also used the random function a number of times.
Then I used a lot more for loops to make the blocks of lines appearing in the image. Finally I used rect to generate the black rectangles seen in the image.

This is what my recreation looked like:

Leave a Reply