first, create a var name "i" and make it real.
then add this into the create actor event in a canvas actor.
- Code: Select all
for(j=0; j<25120; j++)
{
setpen(cos(i*5)*255,cos(i*10)*255,cos(i*20)*255,0,1);
moveto(width/2,height/2);
lineto(cos(i)*(width*2),sin(i)*(height*2));
i+=.00025;
}
play whit the *5,*10 and *20, it gives out good result to have factors.