Draw Lines or Signature with Mouse

Might wanna refer to this post: How to create a Line Draw function in Axure with some math and trigonometry