Ok, so the patch function lets us draw multiple polygons with e.g.
patch(X,Y,'r')
where X and Y are m-by-n matrices. This draws n polygons with m vertices.
But what if I want each of those n polygons to have a unique alpha transparency value?
patch(X,Y,'r', ??? SOME CODE TO USE A VECTOR OF ALPHA VALUES ???)
The documentation is confusing me to death. I can’t use a for loop, since I need to draw many patch objects very quickly. Could somebody kindly provide a code example? Thanks everyone.
Looks like the
FaceVertexAlphaDataproperty is the key: Here is some sample code:docsearch patch propertiesfor more information.