// Cloned by shane on 26 Nov 2018 from World "One Cube World (P5)" by Starter user
// Please leave this clone trail here.
var angle = 0; // rotate angle starts at 0
const objectsize = 200; // size of object
const anglechange = 0.01; // how much the rotate angle changes each step
function setup() // "setup" is called once at start of run
{https://www.bing.com/images/search?view=detailV2&ccid=SwDDzmop&id=8E44A108551EB5E5D853603C790D84A909FB5ECE&thid=OIP.SwDDzmopZ7Ff-RN_EugYCwHaFW&mediaurl=http%3a%2f%2frebelogcoaching.com%2fwp-content%2fuploads%2f2017%2f05%2f487b266888078954345f473ba2990919ebb681e0.jpg&exph=2060&expw=2848&q=hurling&simid=608006787308128307&selectedIndex=7
createCanvas ( ABWorld.fullwidth(), ABWorld.fullheight(), WEBGL );
}
function draw(face) // "draw" is called every timestep during run
{
background("lightblue"); // background color
fill("navy"); // paint box with this color
rotateX(angle); // set each dimension rotation angle to "angle"
rotateY(angle);
rotateZ(angle);
box(objectsize); // draw a cube of this size
angle = angle + anglechange ; // change angle each step to get rotate movement
}