IconRainbow
IconRainbow
This is jff, it probably consumes a lot of battery.
Works best on white icons. Run from item menu.
Script in first comment.
]]>IconRainbow
This is jff, it probably consumes a lot of battery.
Works best on white icons. Run from item menu.
Script in first comment.
]]>
< ![CDATA[
//config
var speed=8;
//endconfig
var i=LL.getEvent().getItem();
var p=i.getProperties();
var parts=[0xff,0x00,0x00];
f();
function f()
{
for(var x=0;x
if(parts[x]<0)parts[x]=0;
else if(parts[x]>0xff)parts[x]=0xff;
}
p.edit().setInteger(“s.iconColorFilter”,0xff000000+parts[0]*0x10000+parts[1]*0x100+parts[2]).commit();
if(parts[0]==0xff){
if(parts[2]>0)parts[2]-=speed;
else if(parts[1]<0xff)parts[1]+=speed;
else parts[0]-=speed;
}
else if(parts[1]==0xff){
if(parts[0]>0)parts[0]-=speed;
else if(parts[2]<0xff)parts[2]+=speed;
else parts[1]-=speed;
}
else if(parts[2]==0xff){
if(parts[1]>0)parts[1]-=speed;
else if(parts[0]<0xff)parts[0]+=speed;
else parts[2]-=speed;
}
if(!LL.isPaused())setTimeout(f,0);
else
p.edit().setInteger(“s.iconColorFilter”,0xffffffff).commit();
}
]]>
< ![CDATA[
that would look great … now to add a simple toggle to either keep them flashing or stop them from flashing
]]>
< ![CDATA[
to hell with that…. unless you mean chritsmas lights hahaha now if i can edit the shortcut after applying without first launching it, also how to keep the flash going even after launch so we dont have to keep enabling it everytime
]]>
< ![CDATA[
Nice
And clever way to get a ‘rainbow’ succession.
But next time use HSV 😉
//config
var speed=8;
//endconfig
var i=LL.getEvent().getItem();
var p=i.getProperties();
var h=0;
f();
function f()
{
h=(h+speed)%360;
p.edit().setInteger(“s.iconColorFilter”,Color.HSVToColor([h,1,1])).commit();
if(!LL.isPaused())setTimeout(f,0);
else
p.edit().setInteger(“s.iconColorFilter”,0xffffffff).commit();
}
]]>
< ![CDATA[
TrianguloY I knew there is an easier way… damn 😉
]]>
< ![CDATA[
Fuckin sweet
]]>
< ![CDATA[
There’s them damn hieroglyphics again lmao
]]>