/@ // Spheres in Beip! function RGB(red,green,blue) { return red+(green<<8)+(blue<<16); } var g=app.newwindow_graphics(300,300); var size=90; var cx=g.width/2; var cy=g.height/2; var time=1; var pi180=Math.PI/180; for(i=0;i<100;i++) { g.SetPen(RGB(0,0,0)); size++; for(y=0;y0;y-=12) { for(x=0;x<360;x+=12) { x2=cx+size*Math.cos(x*pi180); y2=cy-(size*Math.sin(x*pi180)*Math.sin(y*pi180)); g.LineTo(x2,y2); } } g.MoveTo(cx, cy+size); for(y=90;y>0;y-=12) { for(x=0;x<360;x+=12) { x2=cx-(size*Math.sin(x*pi180)*Math.sin(y*pi180)); y2=cy+size*Math.cos(x*pi180); g.LineTo(x2,y2); } } size=20+Math.random()*(g.width+g.height)/8; cx=size+1+Math.random()*(g.width-size*2); cy=size+1+Math.random()*(g.height-size*2); }