Relative Content

Tag Archive for html5-canvasturtle-graphics

HTML Canvas – Method Forward doesnt work after Jumping to X Y Coordinate

I am trying to implement two methods. One to jump to a specific coordinates, the other to draw a line from the current position to the given koordinate.
After using the method lineToXY or moveToXY, I cannot use forward anymore. Somehow it always draws in the wrong direction and way further then expected.