Just a simple demo. Enjoy! Pay attention to the edges of the screen as the shapes go off of it. There shouldn't be any parts where the pen tries to draw off the screen.
I needed some sort of line clipping algorithm for my 3D platformer, so I made this to test it out. Seems to work!