What property of a line is related to the transparency / opacity or alpha of a line?

3 次查看(过去 30 天)
when i plot a line with transparency by means of rgba color triplet and opacity.
hline = plot(x,y,'color',[1,0,0,0.5])
What property of the resulting handle is changed? I cannot find anything in the color triplet, nor can i find a seperate property like 'Alpha' or 'FaceAlpha' or anything similar.

采纳的回答

Ameer Hamza
Ameer Hamza 2020-10-14
编辑:Ameer Hamza 2020-10-14
You can access the alpha value using this line
alpha_val = hline.Edge.get.ColorData(4)
It is in uint8, you can convert to double
alpha_val = double(hline.Edge.get.ColorData(4))/255

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by