xxxxxxxxxx
45
//let controller = new Leap.Controller();
//controller.connect();
//
//let p = 0;
//let r = 0;
//let y = 0;
//let h = 0;
function setup() {
background('pink');
createCanvas(400, 400);
}
function draw() {
//let frame = controller.frame();
//let hand = frame.hands[0];
// if (hand) {
// p = (-180/PI)*hand.pitch();
// r = (-180/PI)*hand.roll();
// y = (-180/PI)*hand.yaw();
// // h = hand.palmPosition[1];
// // console.log(r);
//}
//text(str(p,r,y), 10, 250);
background(220);
//stroke()
text('Hello', 10, 100);
text(str('Rotx ', rotationX), 10, 200);
console.log('Rotx =', rotationX);
text(radians(rotationZ), 10, 300)
text(radians(rotationX), 10, 330)
text(radians(rotationY), 10, 360)
////rotateZ(radians(rotationZ));
//rotateX(radians(rotationX));
////rotateY(radians(rotationY));
//box(200, 200, 200);
//describe(`red horizontal line right, green vertical line bottom.
// black background.`);
}