Talk:Courses/Computer Science/CPSC 203/CPSC 203 Template/Labs Template/Problem Solving Week 2 - Lab 1

Though the following description of addRect function was taken from "Introduction to Programming with JES by Titus Winters and Josef Spjut (October 6, 2005)", it does not seem correct:

"The function addRect takes a color and four coordinates x1, y1, x2, y2, and draws a rectangle with (x1, y1) and (x2, y2) as two opposite corners."

It does not even match with the comment "# Make a blue 30x30 square whose upper-left corner is at 10, 20" that is included in the code. The correct description of the addRect function will be as follows:

"The function addRect takes a color and four integers x, y, width, and height. It draws a rectangle of the given width and height with the position (x, y) as the upper left corner."