It is one of possible values of this variable, according to reference:
The system variable deviceOrientation always contains the orientation of the device. The value of this variable will either be set 'landscape' or 'portrait'. If no data is available it will be set to 'undefined'.
Answers
It is one of possible values of this variable, according to reference:
The system variable deviceOrientation always contains the orientation of the device. The value of this variable will either be set 'landscape' or 'portrait'. If no data is available it will be set to 'undefined'.
http://p5js.org/reference/#/p5/deviceOrientation
i do it on the iPhone 6plus, and it doesn't work