How to chance alpha of static text?
7 ビュー (過去 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.
0 件のコメント
採用された回答
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 件)
tan kei guan
2018 年 4 月 20 日
is it i need to delete the pause line if i wan to set a fix transparency ?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!