Use slider to degenerate the torus into a sphere. Use mouse-click and drag to rotate. Move the slider to 50 and you get a so-called horn torus.
Thanks to @Invincible_Inc for curating. ================================================== Credits to Richie Stauffer: http://calvinshobbies.blogspot.no/2011/01/3d-graphing.html Credits to Wikipedia: http://en.wikipedia.org/wiki/Torus Thanks to @_youtubeN1 for the question about how to draw the sphere and the torus. Thanks to @wwjd3 for the principle of how to code mouse-click-rotate.