#include "colors.inc" #include "textures.inc" #include "metals.inc" #include "Swarm.inc" #declare frames = 50; union { #declare f = int( frames * clock ); #while( f < points ) sphere { < position[f][0], position[f][1], position[f][2] > 0.3 pigment { color < 1, 2, 2 > } //finish { Luminous } } #declare p = f - 10; #if ( p < 0 ) #declare p = 0; #end #while ( p < f ) sphere { < position[p][0], position[p][1], position[p][2] > 0.2 * ( 1 - ( ( f - p ) / 10 ) ) pigment { color < 0, 1, 1 > } //finish { Luminous } } #declare p = p + 1; #end #declare f = f + frames; #end //rotate clock * 360 * y } camera { location < 0, 0, -150 > look_at < 0, 0, 0 > angle 25 } light_source{ < -50, 50, -50 > rgb 1.2 }