Graphics Editor (Photoshop like)
Graphical Editors such as Photoshop allow us to alter bit-mapped images in the
same way that text editors allow us to modify documents. Images are represented as an
M x N array of pixels, where each pixel has a given color
You task is to write a program which simulates a simple interactive graphical editor.
Input
The input consists of a sequence of editor commands, one per line. Each command
is represented by one capital letter placed as the first character of the line. If the command
needs parameters, they will be given on the same line separated by spaces.
Pixel coordinates are represented by two integers, a column number between 1…M
and row number between 1…N, where 1 ≤ M, N ≤ 250. The origin sits in the upper-left
corner of the table. Colors are specified by capital letters.
The editor accepts the following commands: