How to specify fill color of individual faces in imported obj model?

I am trying to specify the fill color of the individual faces in .obj model imported to p5.js using loadModel(). I've set up a simple sketch here: http://codepen.io/Stixan/pen/NbPXBO

Finding the arrays of vertices and faces is easy. But figuring out where to manually assign a fill color per vertex or face is puzzling me. Maybe it is not even possible in the current version of the p5.js?

Sign In or Register to comment.