6,211
edits
Changes
→p5js Code
Add this to your p5js code into setup
<pre>
// go 16:9portrait
if (windowWidth < windowHeight) {
// if portrait=mobil then use the full display height
<pre>
function windowResized() {
// go 16:9portrait
if (windowWidth < windowHeight) {
// if portrait=mobil then use the full display height