Is it possible to change a Panels Transparency in a script?
Is it possible to change a Panels Transparency in a script?
from 0 to 255…
]]>(Next Post) Hello again »
< ![CDATA[
Yes.
panel.getProperties().edit().setInteger(“i.alpha”,value).commit();
]]>
< ![CDATA[
Thanx!
ok, noticed that it doesn’t play well with loops and rapid changes… :/
trying to do a fade effect when scrolling…
ehh, I can live without it 🙂
Thanx again!
]]>
< ![CDATA[
fade would be great, but i don’t think it’s possible atm
]]>
< ![CDATA[
Possible, but vveerryy slow due to PropertySet involved. Wished this could be charged directly.
]]>
< ![CDATA[
It is possible to reduce the time taken by the property change, but translucent item rendering will remain rather slow.
]]>
< ![CDATA[
Pierre Hébert Well, I tried to combine with slide (Sidebar fading in), so it needs to render nevertheless. Or does it really make such a difference? Will try setting panel statically to semi-transparent and see how much the impact is.
]]>
< ![CDATA[
Transparency is awfully slow
]]>
< ![CDATA[
Pierre Hébert Nope, semi-transparent sidebar scrolls in and out the same speed. So the propertyset commit is the main delaying factor.
]]>
< ![CDATA[
So you get a fast processor 😉
]]>
< ![CDATA[
I think Pierre Hébert means not the Property set change is the problem, but rendering the panel in the new transparency takes time. If you have a static transparency it has to be rendered once, but each time you change the transparency it has to be rendered again.
Pierre Hébert what about a method like fade(fromTransparency,toTransparency,duration);
]]>
< ![CDATA[
I have my whole desktop set to about 200 transparency and it’s all smooth
]]>
< ![CDATA[
Pierre Hébert Good old Nexus 4, not top notch, not overclocked, but fast enough.
]]>
< ![CDATA[
Lukas Morawietz ready to use methods to trigger animations is a good idea.
]]>
< ![CDATA[
Thanx Pierre Hébert .. in latest update ‘LLX v10.4b1’ I can fade alpha in a loop without lag… 🙂
]]>