@name Rainbow
@inputs 
@outputs 
@persist 
@trigger 

if (first()) {
    interval(100)
   
    E = entity()
   
    for (P = 1,50) {
        holoCreate(P)
        holoPos(P,E:toWorld(vec(0,0,20+12*P/6)))
        holoScale(P,vec(1)/6)
        holoDisableShading(P,1)
        holoParent(P,E)
    }
} elseif (clk()) {
    interval(100)
   
    for (P = 1,50) {
        holoColor(P,hsv2rgb(((P/5)*10+curtime()*100) % 360,1,1))
    }
}
