xxxxxxxxxx
24
var heart;
var rot = 0;
function preload(){
heart = loadModel('tinker.obj');
}
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
}
function draw() {
background(0);
stroke(204,204,255);
scale(4);
rotateY(frameCount * 0.03);
model(heart);
noFill();
rotateZ(frameCount * 0.02);
stroke(255,0,255);
box(50);
rotateX(frameCount * 0.04);
stroke(127,0,255);
box(70);
rot = rot + 0.01;
}