Mesh rectangles

Hi all, I’m using mesh:setRectColor(i,color) to change color of mesh rectangles individually. I am wondering if we can acces the mesh rectangles array directly and if we can acces the rectangle properties, like their color for example?

I want to toggle their transparency and it would be very handy to just read the current rectangle state directly instead of storing those myself.

See if mesh:buffer might be what you can use.

@Kirl If you want to keep the data stored in the mesh, then I recommend that you do mesh.colors={} and place the specific colors you want for each vertex of the mesh into the table, and then when you want to access it, you can say mesh.colors[1].a = … to alter its transparency