I'm feeling proper knackered this evening, even after a couple of hours sleep. Did a bunch of thinking today (work and paint), and the diet is starting to kick in.
So yes, lox was/is massive overkill for the paint language. Current design is command per line, with a command word followed by space seperated options. E.g:
draw rectangle 1 10 30 20 40
Currently it knows draw rectangle
, draw circle
, and erase last
(where the erase command is to undo one of the other two). I'm going to need to add at least move
, resize
, rotate
, maybe skew
, and set style
.
Commands generally take a shape id as a parameter.
We'll need to add more shapes.