michalh wrote
method void drawPoint() {
do Screen.setColot(true);
do Screen.drawRectangle(x, y, x+4, y+4);
return;
}
method void erasePoint() {
do Screen.setColot(false);
do Screen.drawRectangle(x, y, x+4, y+4);
return;
}
Do they really say "Screen.setColo
t "? I wonder what's getting called?
FWIW, the Square test in chapter 10 has basically identical code:
/** Draws the square on the screen. */
method void draw() {
do Screen.setColor(true);
do Screen.drawRectangle(x, y, x + size, y + size);
return;
}
/** Erases the square from the screen. */
method void erase() {
do Screen.setColor(false);
do Screen.drawRectangle(x, y, x + size, y + size);
return;
}
--Mark