You may also be interested in this previous discussion – it provides a solution to triangle coloring using the Mesh library.
The key method is to use triangulate to get a list of triangles that you can iterate over. Then you just need to store one color per triangle, and you can change the color list to animate your rendering of the mesh.