As I was browsing through the different computer graphics, many of them astonished me, but it was also quite a mystery how to recreate them. I must have jumped to the very beginning where everything started, however, just like computer graphics have experienced a major advancement in just a few decades, let’s hope that my work improves as well.

I chose a graphic with a lot of tetragons in it, and there was definitely something that spoke to me in this image. It was the messiness combined with the composition of the shapes in this graphic. Even though there is no symmetry going on, there is also something harmonic about how the shapes work together. I used a function called *quad* for each of the tetragons and it turned out to be the best function to use, as it essentially draws a four-sided polygon where the angle between two sides does not necessarily have to be 90 degrees. There are 8 values you need to determine for this function and they are the x and y coordinates for each of the corners.

The graphic consists of regularly shaped tetragons where all the 4 sides are of the same length and of irregularly shaped tetragons with different lengths of the sides and angles between them. To draw the regular tetragons I determined the coordinate of the center and measured the distance to the edges, which was the same in each case. That way I could draw a shape with the sides of the same length. For the irregular tetragons it was more challenging, as I had to determine the coordinate for each of the corners and also guess the coordinates of the points that are not in the image. I was usually not right with the first time, so I just had to keep changing the coordinates until I was satisfied with the result. I also added 4 lines as a frame for the sketch. This is the final result:

On the left is the original and not the right – my recreation. As you can see, the original is a little messier in the middle part as more lines are really close to each other there. In my recreation a lot of the lines in the middle are actually overlapping, therefore it doesn’t look as messy.

This is the code I used:

size (250, 350); background (255,255,255); noFill(); //squares quad (105, 325, 75, 295, 105, 265, 135, 295); quad (135, 235, 120, 220, 135, 205, 150, 220); quad (130, 225, 105, 200, 130, 175, 155, 200); quad (140, 225, 115, 200, 140, 175, 165, 200); quad (93, 195, 75, 178, 93, 160, 110, 178); quad (127, 170, 95, 137, 127, 105, 160, 137); quad (150, 140, 135, 125, 150, 110, 165, 125); //the smallest quad (115, 145, 85, 115, 120, 80, 150, 110); quad (120, 310, 5, 195, 120, 80, 235, 195); quad (110, 90, 75, 55, 110, 20, 145, 55); //the rest quad (160, 350, 40, 229, 156, 115, 350, 220); quad (55, 245, 136, 160, 50, 70, -50, 154); quad (200, 205, 85, 90, 168, -30, 390, -25); quad (137, 164, 53, 78, 145, -80, 230, 75); quad (225, 73, 180, 30, 225, -40, 300, 20); quad (226, 55, 194, 25, 228, -40, 313, 16); //the frame line (0, 0, 250, 0); line (0, 0, 0, 350); line (249, 0, 249, 349); line (0, 349, 249, 349);