In regards to the first interactive demo, it seems to be adjusting the line to be parallel to the one drawn on the background. Was this intentional or are the supposed to converge?
(rereading my original comment I think I described what I was seeing incorrectly but this new reply correctly explains what I was originally seeing)