i am making a super applet from remixing yours, thanks for code
x=x-dxm/20.; // for your case (20 smaller division).

just the right tip i need to make sense. Thanks!