! Practice Program 12-1
! Draw three squares.
SET MODE "graphics"
LET Ratio = 1.4
SET WINDOW -(50 * Ratio), 50 * Ratio, -50, 50
BOX LINES -5, 5, -5, 5
PAUSE 1
SET COLOR "red"
BOX LINES -10, 10, -10, 10
PAUSE 1
SET COLOR "green"
BOX LINES -15, 15, -15, 15
PAUSE 1
END
The result:
Three concentric squares of different colors