This application allows to draw lines and rectangles on canvas. Also it allows fill closed area. All these actions can be displayed by pseudographics(in file "output.txt").
For running application you must create a file with name "input.txt". The file must contain commands.
-
C w h
w - width
h - heigth
-
L x1 y1 x2 y2
x1, y1 - coordinates of 1st point
x2, y2 - coordinates of 2nd point
-
R x1 y1 x2 y2
x1, y1 - coordinates of 1st point
x2, y2 - coordinates of 2nd point
-
B x y
x, y - coordinates of point, which contained into field, which will be filled
For running tests you must be in root directory (which contain README).
Execute next command:
$ python3.x -m Tests.test_command_executor