Generate Procedural Mesh

In fact, everything is good.

I didn’t take into account the triangle edge position. So the colorization is correct, it’s not what I was looking at the beginning.
The first triangle edge is Between TopLeft and Center, this is why the color gradient is until the center position.

Is there a way to put a weight on vertex to try to fix this ? I would like to have the same result as on Top Right corner.

Thanks,