Drawing knots

Help: draw with the mouse as in Paint (but slowly). Press any touch to put the thread in the background / foreground. You can click on intersections afterwards to toggle.
author: François Schwarzentruber