Exercise: Malevich’s Boxes

‘In the year 1913, trying desperately to free art from the dead weight of the real world, I took refuge in the form of the square.’
—The Non-Objective World, 1927, Kazimir Malevich
Instructions
After remixing this code, I'd like you to create 4 compositions of any sized square/s with the following amount of boxes in each:
- 1 box
- 2 boxes
- 3 boxes
- 4 boxes
Feel free to experiment with color, scale, and gradient. Use the following position values at least once:
- Static
- Relative
- Fixed
- Absolute
References