./save//./examples/en/example_121 Editor
     
//--------------------------
// example 21
// texture array


color(#ffffff,#0,#0)

//--------------------------------
// max. 20 texture
texturearray.start

//--------------------------------
// tömb feltöltése
texturearray(matematika/p_07.jpg)
texturearray(matematika/p_08.jpg)
texturearray(matematika/p_09.jpg)
texturearray(matematika/p_10.jpg)
texturearray(matematika/p_11.jpg)
texturearray(matematika/p_12.jpg)
texturearray(matematika/p_13.jpg)
texturearray(matematika/p_14.jpg)
texturearray(matematika/p_15.jpg)



for(n,1,50)
  x=rand(-10,10)
  y=rand(-10,10)
  z=rand(-10,10)  
  translate(x,y,z)
  
  rx=rand(0,360)
  ry=rand(0,360)
  rz=rand(0,360)
  
  rotation(rx,ry,rz)
  
  //------------------------------
  // random texture
  texture(rand,16,8)
  r=rand(10,20)/10
  sphere(r)
next(n)