Code viewer for World: Image (P5) (clone by Elva)...

// Cloned by test2 on 22 Nov 2020 from World "Image (P5) (clone by Elva)" by Elva 
// Please leave this clone trail here.
 
var img;

function preload() 
{
   img = loadImage ( '/uploads/elva25/1606057022.png' );
}


// Cloned by Elva on 15 Nov 2020 from World "One Cube World (P5)" by Starter user 
// Please leave this clone trail here.
 
 
const objectsize    = 5     // size of object   

const anglechange   = 0.005;     // how much the rotate angle changes each step 

var angle = 0;                  // rotate angle starts at 0  


function setup()        // "setup" is called once at start of run 
{
  createCanvas ( ABWorld.fullwidth(100), ABWorld.fullheight(100),  WEBGL );
}

function draw()         // "draw" is called every timestep during run 
{
    background("black");    // background color 
      texture(img);        	
  // fill("blue");               // paint box with this color 
           
    rotateX(angle);           // set each dimension rotation angle to "angle"
    rotateY(angle);
    rotateZ(angle);
  
   // box(500,700,600); 
    box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(5, 15, 10);
 box(objectsize); 
    box(objectsize); 
 translate(5, 15, 10);
 box(objectsize); 
    box(objectsize); 
 translate(5, 15, 10);
 box(objectsize); 
    box(objectsize); 
 translate(5, 15, 10);
 box(objectsize); 
    box(objectsize); 
 translate(15, 10, 5);
 box(objectsize); 
    box(objectsize); 
 translate(15, 10, 5);
 box(objectsize); 
    box(objectsize); 
 translate(15, 10, 5);
 box(objectsize); 
    box(objectsize); 
 translate(15, 10, 5);
 box(objectsize); 
    box(objectsize); 
 translate(15, 10, 5);
 box(objectsize); 
  translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 box(objectsize); 
   box(objectsize); 
 translate(10, 5, 15);
 //box(150,50,50); box(50,50,250);          // draw a cube of this size 
  
    angle = angle + anglechange ;       // change angle each step to get rotate movement        
}