How a discontinuous mechanism can produce continuous patterns in trajectory formation and Handwriting