Accelerometer with P5js
Romain Talou
Info

var x, y, z; var xpos, ypos; function setup() { // set canvas size createCanvas(400, 400); // default values xpos = 200; ypos = 200; x = 0; y = 0; } function draw() { // set background color to white background(255); // add/subract xpos and ypos xpos = xpos

Connections