I chose Concealing by Josef Albers (https://www.guggenheim.org/artwork/147) as a motif. The use of abstract shapes and the artful choice of color make this piece of work a good inspiration. It took me some time to get used to the special coordinate system in Processing, and it was a little demanding to estimate the numerical values based on the relative positions of the shape.
It was not difficult to copy the composition and color, but the overlying layers of polygons reminded me of the room in Stephen King’s novel “1408”. I use alternate color systems of different saturation for each part to give it a sense of constriction. To add something different from the original work, I used a Bézier curve. Processing may not be the best choice for designing, for it requires a lot of calculation work by heart, lacks effects of materials and paintbrushes, and does not reflect our thought in real-time. It works better for dynamic and interactive 2-D artworks.
Code:
size(600,600);
fill(201,159,53);//brown 129,79,29
noStroke();
rect(0,0,600,600);
fill(90,90,69);//purple 110,29,129
noStroke();
rect(100,60,400,540);
fill(2527,220,11);//red 211,23,80
stroke(255);
quad(180,60,450,120,450,480,180,480);
fill(12,12,12);//white 255
noStroke();
quad(240,280,350,300,350,460,240,470);
fill(191,166,23);// green 1 34,155,125
stroke(255);
quad(0,510,180,480,180,600,0,600);
fill(191,166,23);// green 2
stroke(100);
quad(180,600,180,510,600,465,600,600);
line(100,160,500,115); // line above
stroke(255);
noFill();
stroke(240,129,10);
for (int i = 0; i < 200; i += 10) {
bezier(i, 40+i, 410, 20, 440, 300, 300-(i/16.0), 300+(i/8.0));
}
Final sketch: