2

I would like to set the transparency / opacity of the vertices in a graph to alpha = 0.5, except for some chosen ones.

I can alter the transparency with

vertex.color = adjustcolor(colorvector,alpha)

But this will change the transparency / color for all the vertices. How can I change the alpha value for single vertices?

4

1 回答 1

3

只需调整您想要更改的那些。

colorvector[NodesToAdjust] = adjustcolor(colorvector[NodesToAdjust],alpha)
vertex.color = colorvector
于 2018-12-16T14:21:03.173 回答