This is a collection of p5 sketches designed for mobile browsers. For the p5 Mobile wiki, go here.
The sketches run on local server using [connect] (https://github.com/senchalabs/connect).
To try the sketches on your phone:
Install [Node.js] (https://nodejs.org/) if you haven't already
- Change the directory in server.js to the sketch you want to use
- Run local server on your desktop: node server.js
- Connect your phone to the same WiFi network as your desktop
- Find your desktop's IP address, and go to your IP address:8080 from your mobile browser
Alternatively, you can host the sketches with Google Drive, instead of having to setup local host. Follow the steps for setting up Google Drive host here.
View the following examples in your mobile browser.
- simpleDraw: http://bit.ly/1GWP5fE
- multitouchZoom: http://bit.ly/1WdviAy
- accelerometerMoveBall: http://bit.ly/1K6DbC8
- accelGravityMoveBall: http://bit.ly/1LDcBSj
- deviceMoved: http://bit.ly/1FNEQGx
- deviceTurned: http://bit.ly/1JoSEvU
- shake: http://bit.ly/1LDcBSj
- deviceShaken: http://bit.ly/1fXjiSx
- 3dBoxAcceleration: http://bit.ly/1Iiv2Jb
- p5HammerPress: http://bit.ly/1P6w65j
- p5HammerPinch: http://bit.ly/1IHrUUg
- p5HammerSwipe: http://bit.ly/1IXxhVZ
- p5HammerDoubleTap: http://bit.ly/1IZSdd2
- p5HammerRotate: http://bit.ly/1PhnclO
- p5jQueryMobilePage: http://bit.ly/1IX0muh