Files
itgmania212121/Themes/_themekit-piu/BGAnimations/ScreenWithMenuElements background.lua
T

30 lines
667 B
Lua
Raw Normal View History

2011-04-29 14:58:59 -04:00
local particles = {
2013-07-03 18:38:57 -04:00
Def.Quad {
InitCommand=function(self)
self:FullScreen();
self:diffuse(color("#003200"));
self:diffusetopedge(color("#000000"));
end;
}
2011-04-29 14:58:59 -04:00
}
for i=1,30 do
particles[#particles+1] = Draw.Oval(math.random(20,80))..{
InitCommand=function(self)
self:finishtweening();
self:decelerate(0.25);
self:x(math.random(20,SCREEN_WIDTH-20));
self:y(math.random(20,SCREEN_HEIGHT-20));
self:diffuse(math.random(0.2,1),math.random(0.2,1),math.random(0.2,1),math.random(0.75,0.95))
end;
2013-07-03 18:38:57 -04:00
ScreenChangedMessageCommand=function(self)
self:playcommand("Init");
end;
2011-04-29 14:58:59 -04:00
}
end
return Def.ActorFrame {
children = particles;
2011-04-07 16:42:16 -07:00
}