Btw, this is the original "Kubist" I made with Processing a couple years ago. It uses opencv instead of JSFeat for feature point detection, and Mesh library instead of d3.
http://www.metaphorical.net/note/on/kubist (really old website, sorry it's kind of unusable :P)