Use your mouse to control the rope, it might take a second to generate
This uses a lot of cool math by cool people, Credit for math: Wiki, @Ganheso_Leso