#!/usr/local/bin/freej -j // FreeJ - http://freej.dyne.org // this is a simple script example, executable with FreeJ // doesn't needs any external data, it's all runtime rendered // feel free to experiment from this small script, // much more things can be done ;) particles = new ParticleLayer(); text = new TextLayer(); scroll = new VScrollLayer(); if(particles) { particles.set_blit("alpha"); add_layer(particles); particles.blossom(0); particles.blossom(0); particles.set_blit_value(0.4); } if(scroll) { scroll.speed(1); scroll.set_blit("alpha"); add_layer(scroll); scroll.set_blit_value(0.7); scroll.append("hello world!"); cafudda(1); scroll.append("this is a short freej script example"); cafudda(1); scroll.append("now we start randomizing everything.."); cafudda(2); } srand(); for( c=0 ; c<100 ; c+=10 ) { numba = rand(c); // generate random numbers