Hello there! I bring you a maybe complex question which i would love your help with. Allow me to go straight to the point:

I desire an algorithm or logic in which i draw a shape using my mouse...