Changing the brush color using a color picker - different format
Show older comments
whats the best way to convert the numbers in val
val =[1 1 0] % From color picker
To the format required here:
marker.FaceColorData=uint8(255*[1;0;0;1]); %Brush color, 4th digit is alpha Alpha=0.3 => 70% transparent red
thanks
(https://undocumentedmatlab.com/articles/hidden-hg2-plot-functionality)
Accepted Answer
More Answers (0)
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!