This example uses straight Javascript drawing on a canvas. Blog post here. Press the Redraw button to draw more random arrows.