So I want to draw a line on canvas (in 3d) and make it rotatable (in 3d) on mouse dragging that line (dragging some of its points) (better with out use of anything like a specialized lib - pure no libs JS...)?
A good choice is the "Three.js" library; the README has a simple example of how to create a simple canvas-rendered scene. The "Voxels" example has mouse rotation; for fun, see the "spikeball" demo.
I think c3dl (documentation) will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With