Code viewer for World: gentle intro

// Cloned by Vyoma Patel on 30 Sep 2021 from World "One Cube World (P5)" by Starter user 
// Please leave this clone trail here.
 
var img;

function preload() 
{
   img = loadImage ( '/uploads/vyoma136/1632996054.png');
   img1 = loadImage ( '/uploads/vyoma136/1632998422.png');
img2 = loadImage('/uploads/vyoma136/1632998483.png');
}


const objectsize    = 30;     // size of object   

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

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


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

function draw()         // "draw" is called every timestep during run 
{
    background("azure");    // background color 
//fill("aqua"); // paint box with this color
    
    

    noStroke();
    rotateX(angle);             // set each dimension rotation angle to "angle"
    rotateY(angle);
    rotateZ(angle);
  
     texture(img); 
      box(objectsize);
      
 translate(50,50,100);
texture(img1);
 sphere(50);
 
translate(50,50,100);
 texture(img2);
cone(40,70);

  
    angle = angle + anglechange ;       // change angle each step to get rotate movement
}