P5Js with D3js combined

Just a small example of a d3js sketch combined with a p5js sketch.

Not so extensive now, but this has a lot of potential using the power of both.

This was a d3 example (from the d3js.org website) showing how to color a map based on data from a csv file. The map is an svg, where we alter the fill of a shape based on the value assinged to that area.

I embedded it into a p5 sketch and added a slider to adjust the background. I hope dive a bit deeper in the future in combining these techniques.

Just another WordPress site