A very, very simple bit of JavaScript for drawing vectors using a Canvas