Processing for Android

Camera orientation

By default, Processing's 3-D coordinates have the origin placed are the top left corner of the screen, and the Y axis pointing down. Calling the cameraUp() function this setting is overriden by the more common in VR with the origin at the center of the screen, and the Y axis pointing up


import processing.vr.*;

void setup() {
  fullScreen(STEREO);
  cameraUp();
} 

void draw() {
  box(300);  
}