Basic coordinate transformations

This should allow us to draw lines using the coordinates from the data file. The viewport is hard-coded at the moment, but it should be possible to implement panning and zooming by changing the variables `translateX`, `translateY`, and `scale`.