[Distance settings don't works]

Hi, I’m working with a new drawing program,
but my triangle-function don’t works…

Download this file and you will see the problem when you change
the x-distance.

Please, help!