Question: Homework 14 part a Draw 6 rectangles in a graphics window. Make the rectangles a different color from the background. The tops of your rectangles

 Homework 14 part a Draw 6 rectangles in a graphics window.

Homework 14 part a Draw 6 rectangles in a graphics window. Make the rectangles a different color from the background. The tops of your rectangles should conform to the linear function y=x, creating a diagonal pattern up-and-to-the-right. In order to receive full credit you must use a for loop, a clone command, and a.move(dx,dy) command. Do not simply paste six different rectangles in six different places. Save & Run Load History Show CodeLens 1 2 ActiveCode (hw14aDE) Question in Context Homework 14 part a Draw 6 rectangles in a graphics window. Make the rectangles a different color from the background. The tops of your rectangles should conform to the linear function y=x, creating a diagonal pattern up-and-to-the-right. In order to receive full credit you must use a for loop, a clone command, and a.move(dx,dy) command. Do not simply paste six different rectangles in six different places. Save & Run Load History Show CodeLens 1 2 ActiveCode (hw14aDE) Question in Context

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!