Code viewer for World: Cloned One Cube World (P5)

// Cloned by jason sheehan on 28 Jan 2019 from World "One Cube World (P5)" by Starter user 
// Please leave this clone trail here.
 
 var img;

function preload() 
{
   img = loadImage (  "/uploads/starter/earth.1.jpg" );
}

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

const objectsize    = 500;      // size of object   

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


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("FireBrick");    // background color 
    fill("Indigo");               // paint box with this color 
           
    rotateX(angle);5            // set each dimension rotation angle to "angle"
    rotateY(angle);7
    rotateZ(angle);15
  
    box(objectsize);            // draw a cube of this size 
  
    angle = angle + anglechange ;       // change angle each step to get rotate movement        
}

 box ( 200, 50, 1000 );