I opened the example file DisplayRowOfSpheres.vuo for a row of spheres and made a row of triangles but the methodology is not one I think that I can adapt for what I want to do.
I want to do colour transformations like from the left image to the right image above. I want to change them one at a time and eventually to write a folding transformation animation so the triangles can be rotated about an axis on one of their edges.
So i figured not knowing anything about Vuo, and this is how i'd attempt to do it in QC, that I'd generate a list of triangle co-ordinates and vertex colors much like you'd feed into the Kineme OpenGL Triangle Structure patch. That way I could use maths to determine triangle size, set the co-ordinates accordingly so they are all aligned to the 60º grid and touching but not overlapping. Then i'd either feed it to the Triangle Structure patch in QC or an iterator with a GLTriangle patch and breakout all the data inside the iterator and feed to the patch, including any vertex colour transitions or 3D transformations for animating a move.
The math is a little bit more involved using Points on Curve node to do the translations — and I can't do an loop inside a loop to make all the translations I need for a grid. Or can i? I thought I'd need to write a node to generate the points or do it elsewhere and import as string literals and feed into something to split it into datatypes that work in Vuo to do the translations and scales on my prototype Triangle object. Not sure what nodes do that splitting for a txt or XML into co-ordinates.
The grid the setup in DisplayRowOfSpheres.vuo it's quite hard to even set up the triangle width if the viewer window is going to change dimensions and even if it isn't it's all either trail and extra maths, and then if I want to change the triangle size and therefore number of triangles it complicates the maths further, there's too much contingency math. It becomes even harder when I want to flip individual triangles I think. Maybe i just need to adapt my thinking to Vuo way.
Any ideas appreciated or guidance.