###Using d3.js Voronoi Layout
D3.js Layouts perform all the calculations for rendering a specific visualization type and returns all the values needed to draw them.
Original d3 code: http://bl.ocks.org/mbostock/4060366
<iframe height='550' scrolling='no' src='//codepen.io/sepans/embed/Qbgaby/?height=550&theme-id=17280&default-tab=result' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen d3.js and p5.js - Voronoi diagram by Sepand Ansari (@sepans) on CodePen. </iframe>