Draw Triangle

Each row of text boxes represent the x1, y1, x2, and y2 for a line.

The source code