Click around to add points - Red points are points that have not yet been calculated into the line, green ones have. The space key calculates and draws the line while R will reset everything.
This project was made to (hopefully) help @austinjeffrybatman with one of their projects. :) The basics of what things do are commented inside the project! Also, credit to Varsity Tutors which is how I figured out how to do this.