Added pen color

This commit is contained in:
Lukasz Baldyga committed 2020-10-25 09:11:45 +00:00
1 parent 7a98404d4b
commit f3316955b5
4 files changed
+65 -1

No files matched your search

@@ -144,8 +144,11 @@ namespace Advanced_Software_Engineering {
} else throw new Exception("Command doesn't take parameters");
case "pen":
if(parameters.Length == 1) {
return new PenColor(drawer, Value.TextToColor(parameters[0]));
} else throw new Exception("Command has an incorrect number of parameters");
case "fill":
throw new Exception("Not implemented");
default:
throw new Exception("Command not found");