drawRect method
Draw an outlined rectangle
Implementation
void drawRect(int x, int y, int w, int h, bool color) {
// top
drawLine(x, y, x + w, y, color);
// left
drawLine(x, y + 1, x, y + h - 1, color);
// right
drawLine(x + w, y + 1, x + w, y + h - 1, color);
// bottom
drawLine(x, y + h - 1, x + w, y + h - 1, color);
}