xxxxxxxxxx
void setup() {
size(1000, 1000, P3D);
background(255, 195, 77);
noStroke();
}
int tick;
void draw() {
camera(width / 2, height / 2 + 1000, width / 2 + 50, mouseY, (width - mouseX), 0, 1, 0);
background(255, 195, 77);
lights();
// body
pushMatrix();
fill(255, 120, 120);
translate(width / 2, height / 2, 0);
rotateX(tick / 5);
box(200);
popMatrix();
// right eye
pushMatrix();
fill(0, 0, 0)
translate(width / 2 - 25, height / 2 + 200, 150);
rotateX(radians(25));
box(20);
popMatrix();
// left eye
pushMatrix();
fill(0, 0, 0)
translate(width / 2 - 25, height / 2 + 200, 50);
rotateX(radians(25));
box(20);
popMatrix();
// mouth
pushMatrix();
fill(0, 0, 0)
translate(width / 2 + 30, height / 2 + 200, 100);
rotateX(radians(25));
box(20, 20, 200);
popMatrix();
pushMatrix();
rotateX(radians(tick));
rotateY(radians(tick));
rotateZ(radians(tick));
fill(0, 0, 0);
textSize(128);
text("Hello there!!!", 0, 0);
popMatrix();
tick++;
}