Sol LeWitt is a famous American artist. He came to fame in the late 1960s with his
Question:
Sol LeWitt is a famous American artist. He came to fame in the late 1960s with his wall drawings and "structures" (a term he preferred instead of "sculptures") but was prolific in a wide range of media including drawing, printmaking, photography, painting, installation, and artist's books (https://en.wikipedia.org/wiki/Sol_LeWitt). In this exercise, you are asked to recreate the works of Sol LeWitt using p5js as per the below instructions.
a. Six-part drawing. The wall is divided horizontally and vertically into six equal parts. 1st part: On red, blue horizontal parallel lines, and in the center, a circle within which are yellow vertical parallel lines; 2nd part: On yellow, red horizontal parallel lines, and in the center, a square within which are blue vertical parallel lines; 3rd part: On blue, yellow horizontal parallel lines, and in the center, a triangle within which are red vertical parallel lines; 4th part: On red, yellow horizontal parallel lines, and in the center, a rectangle within which are blue vertical parallel lines; 5th part: On yellow, blue horizontal parallel lines, and in the center, a trapezoid within which are red vertical parallel lines;
6th part: On blue, red horizontal parallel lines, and in the center, a
parallelogram within which are yellow vertical parallel lines. The horizontal lines do not enter the figures.
b. Draw a wall with "irregular wavy color bands". Hint: you can use curveVertex and random functions in p5js library.