d3 version of lucas' svg sketch