/p5MobileWebExamples

Use p5 to build interactions that happen in the mobile browser

Primary LanguageJavaScript

p5 Mobile Examples

A collection of p5 sketches designed for the mobile browser. For the p5 Mobile wiki, go here.

Try the following examples in your mobile browser (Safari or Chrome): https://ohjia.github.io/p5MobileWebExample-master/

p5 Touch Events

  • simpleDraw
  • multitouchZoom

p5 Acceleration Events

  • accelerometerMoveBall
  • accelGravityMoveBall
  • deviceMoved
  • deviceTurned
  • shake
  • deviceShaken
  • 3dBoxAcceleration

p5 + Hammer.js Gesture Events

hammer.js

  • p5HammerPress
  • p5HammerPinch
  • p5HammerSwipe
  • p5HammerDoubleTap
  • p5HammerRotate

p5 + jQuery Mobile Page

jQuery Mobile

  • p5jQueryMobilePage