How to chance alpha of static text?

1 次查看(过去 30 天)
Hi everybody, i am trying to change the alpha of a static text object. I want to create a fading effect in the beginning of my GUI. Any help would be appercaited. I tried:
for i = 1:.1:0
pause(.5);
set(handles.IntroText, 'Aplhadata', i);
end
Not really sure how to set the alpha of a static text.

采纳的回答

Vlad Miloserdov
Vlad Miloserdov 2016-3-20
If I understand your question correctly, you can do next
for i = 0:.1:0.9
pause(.5);
set(handles.text1,'ForegroundColor',[i i i])
end
  1 个评论
Jesse Abruzzo
Jesse Abruzzo 2016-3-20
Yup that was exactly what i needed. Thank You for Your help I apprecaite it.

请先登录,再进行评论。

更多回答(1 个)

tan kei guan
tan kei guan 2018-4-20
is it i need to delete the pause line if i wan to set a fix transparency ?

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by