Good start, needs more to be great
Now, this could become cooler and way more useful (not to mention educational) in the following ways:
(1) allow the end points (say the peak of the triangle) to move. Right now the shape’s points are pretty much fixed in spot, despite all the changes you can make elsewhere. I would call this the “edit” button
(2) an undo/redo option would be nice for quick test runs
(3) create a “curves” button where you press, hold, and drag to introduce a bend in your line. Groovy.