A little JS experiment allowing to filter curves drawn by mouse.
Try to draw something (it should be a loop, or strange things can happen) and hit “Draw FT”.
http://www.mmorel.eu/line-filter
https://github.com/MaximeMorel/LineFilterJS