Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Mesh rectangles

in Questions Posts: 181

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.

Tagged:

Comments

  • dave1707dave1707 Mod
    Posts: 7,555

    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

Sign In or Register to comment.