A simple framework for d3 canvas 'simulations'