All commands may be entered in upper or lower case or any combination of cases. There are 11 legal combinations of commands and arguments.
NEW - by itself will create a default grid (100x100, all white).
NEW n m - where n and m are integers that are each >= 2 and <= 400,
will create an n by m grid (all white).
NEW n m r g b - where r, g and b are integers in the proper range for Java colors,
will create an n by m grid (all in the color specified by the r, g and b values).
SET i j r g b - where i is an integer in the range 0 to (n - 1) and j is
an integer in the range 0 to (m - 1), will set the color of grid cell [i][j] to the specified color.
BRIGHTEN i j - will brighten the color of grid cell [i][j].
DARKEN i j - will darken the color of grid cell [i][j].
SETarea i j ii jj r g b - will set the color of all grid cells in the range of
[i][j] through [ii][jj] to the specified color. Restrictions: ii must be >= i, and
jj must be >= j.
BRIGHTENarea i j ii jj - will brighten the colors of all grid cells in the
specified range (with same restrictions as above).
DARKENarea i j ii jj - will darken the colors of all grid cells in the
specified range (with same restrictions as above).
DISPLAY - takes no arguments.
QUIT - takes no arguments.
Any other command-argument combinations should result in an appropriate error message (study the "Second run" in the sample runs, and try to make sure your application works the same way).