At the moment, the pen trace is a single, fixed colour and is on a layer that sits above the robot:
should the trace be underneath the robot?
how is the order of the canvas layers defined?
It also useful for the pen trace to persist between runs. It would be useful to support:
[ ] a different colour trace on each run;
[ ] consequent traces on higher layer than previous traces;
[x] the ability to clear previous pen traces between runs;
[ ] the ability to call pen up / pen down from robot program code;
[ ] the ability to set pen colour from robot program code.
There is also a question as to where the pen origin should be. The robot geometry currently has the wheels off center and the pen located at the tail. Should the pen be center on the midline of the wheel axis, or whichever point is used as the turnin origin of the robot?
[ ] allow pen location to be at the turning center or mid-tail etc.
At the moment, the pen trace is a single, fixed colour and is on a layer that sits above the robot:
It also useful for the pen trace to persist between runs. It would be useful to support:
There is also a question as to where the pen origin should be. The robot geometry currently has the wheels off center and the pen located at the tail. Should the pen be center on the midline of the wheel axis, or whichever point is used as the turnin origin of the robot?