3 ms·
Yes. I use d3.geom.delaunay or d3.geom.voronoi to create the delaunay or voronoi tessellation. http://bl.ocks.org/mbostock/4341156 http://bl.ocks.org/mbostock/
by metaphorical 11y ago
Yes. I use d3.geom.delaunay or d3.geom.voronoi to create the delaunay or voronoi tessellation.
http://bl.ocks.org/mbostock/4341156 http://bl.ocks.org/mbostock/4341156
Then for each polygon, I take its points (center point or vertices or an arbitrary point) and find the corresponding pixel on the image. Then I extract the rgb color, and use that to fill the polygon (as solid color or gradient).