Rendered using HTML Canvas. All logic and drawing of the train was done completely from scratch.
The track is made up of an interpolation between draggable points.
Click and drag to move points, shift-click to add points, ctrl-click to delete points.
Check the checkbox to make the train start moving, or use the slider to set the position of the train on the track.
Tension controls how rounded the curves are (1 is straight lines, 0 is very rounded).