20. Quiz D
The 300x200 screen is split into two regions:
- A yellow quarter-circle of radius 190, centered on the upper left corner.
- A light blue on the remainder of the rectangle.
Clicking places a solid circle of radius 10.
- Inside the yellow, the placed circle is red.
- On top of the light blue, the placed circle is blue.
Hitting space bar (" "
) causes the circle to move, depending on the
location of the circle:
- A red circle moves halfway from its current position to the upper left corner.
- A blue circle moves 1/3 of the way from its current position to the lower right corner.
A blue line segment protrudes 10 pixels past the edge of the blue circle, pointing directly at the lower right corner no matter where the circle is.