foldingO_Day0
function setup() {
createCanvas(400, 400,WEBGL);//canvas creation
bg = loadImage('/assets/origam.jpg');//origami image
noStroke();
}
function draw() {
texture(bg);
plane(400, 400);//bacground plane
push()
rotateZ(frameCount/100);//rotate box
rotateY(frameCount/100);//rotate box
rotateX(frameCount/100);//rotate box
box(250,250,250);//create box
pop()
box(250,250,250);//place box to intersect
}