Can't open p5.js sketch on mobile which works on mac

https://editor.p5js.org/lohoso/present/Td-myBfmT

The sketch works on laptop, but does not work on my iPhone.

Anyone can help?

1 Like

It works on my iPhone SE running Safari on iOS 13. What model, version and browser are you on?

1 Like

I use iPhone XS max, iOS 13.3.1. I tried Safari & Chrome on it, but both fail.

And I try to open it on an android phone, the sketch works.

1 Like

The canvas in your sketch is pretty large (2000×968 px). Maybe you’re hitting the maximum canvas size for your specific device. Try making the canvas a lot smaller, like 300×300 px.

To know for sure what’s happening you should hook up your iPhone to your Mac and use the Web Inspector to debug the problem.

2 Likes

I changed size of canvas, it works on my iPhone! Thanks a lot!

2 Likes