xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
function draw() {
background(0);
fill(255);
textSize(30);
text("accelX: " + accelerationX, width/2-50, height/2);
text("accelY: " + accelerationY, width/2-50, height/2 + 50);
text("accelZ: " + accelerationZ, width/2-50, height/2 + 100);
text("rotatX: " + rotationX, width/2-50, height/2 + 150);
text("rotatY: " + rotationY, width/2-50, height/2 + 200);
text("rotatZ: " + rotationZ, width/2-50, height/2 + 250);
}