Refactored the AnimTriangle demo.
Refactored the ThreeLines demo.