var img;
function preload()
{
img = loadImage ( '/uploads/test2/1606057486.png' );
}
const objectsize = 50; // size of object
const anglechange = .0; // 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(), ABWorld.fullheight(), WEBGL );
}
function draw() // "draw" is called every timestep during run
{
texture(img);
background("cornflowerblue"); // background color
// fill("navy"); // paint box with this color
rotateX(angle); // set each dimension rotation angle to "angle"
rotateY(angle);
rotateZ(angle);
translate ( -300, 0, 0 ); box(objectsize);
translate ( 0, -50, 0 ); box(objectsize);
translate ( 0, -50, 0 ); box(objectsize);
translate ( 0, -50, 0 ); box(objectsize);
translate ( 0, 200, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( 50, -250, 0 ); box(objectsize);
translate ( 50, 0, 0 ); box(objectsize);
translate ( 50, 50, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( -50, 50, 0 ); box(objectsize);
translate ( -50, 0, 0 ); box(objectsize);
translate ( 200, 0, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( 50, 50, 0 ); box(objectsize);
translate ( 50, 0, 0 ); box(objectsize);
translate ( 50, -50, 0 ); box(objectsize);
translate ( 0, -50, 0 ); box(objectsize);
translate ( -50, -50, 0 ); box(objectsize);
translate ( -50, 0, 0 ); box(objectsize);
translate ( 200, 50, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( 50, 50, 0 ); box(objectsize);
translate ( 50, 0, 0 ); box(objectsize);
translate ( 50, -50, 0 ); box(objectsize);
translate ( 0, -50, 0 ); box(objectsize);
translate ( -50, -50, 0 ); box(objectsize);
translate ( -50, 0, 0 ); box(objectsize);
translate ( 100, 150, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( 0, 50, 0 ); box(objectsize);
translate ( -50, 50, 0 ); box(objectsize);
translate ( -50, 0, 0 ); box(objectsize);
translate ( -50, -50, 0 ); box(objectsize);
angle = angle + anglechange ; // change angle each step to get rotate movement
}