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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!