Question: I need to create a program that uses Python 3, specifically the turtle function to create a Piet Mondrian type of program. The program would
I need to create a program that uses Python 3, specifically the turtle function to create a Piet Mondrian type of program. The program would begin with 1 filled rectangle in a random color and then repeatedly fill two unequal subdivision with random colors. The algorithm continues the process of subdivision until an "aesthetically right moment" is reached. In this version the algorithm divides the current rectangle into portions representing 1/3 and 2/3 of its area and alternates these subdivisions along the horizontal and vertical axes. Design, implement, and test a script that uses a recursive function to draw these patterns.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
