How does it decide the direction of movement? I'm unable to figure out
If you manage to paint a figure that starts and ends at the same point, then it stays in place and seems to be a static draw.
If you just draw a straight line, it just starts "to move" forward.