Question: The drawFilledRectangle function appearing in Example 1 is a useful function that could be reused in other programs. However, after it executes, the current pen
The drawFilledRectangle function appearing in Example 1 is a useful function that could be reused in other programs. However, after it executes, the current pen colors might be altered. Modify the function definition so that it does not alter the current colors.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
