News for hackers. Stuff that matters.
Re:Show HN: Kubist, a little web app to make cubism-like images by metaphorical on Monday April 20, 2015 @05:27PM (#9410974)
Yes. I use d3.geom.delaunay or d3.geom.voronoi to create the delaunay or voronoi tessellation.

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).

There are no comments on this comment yet.