Using a class, you can create a collection of circles that move within the canvas in response to the tilt of a mobile device. You must open this page on a mobile device to display the sketch.
No alt text
Snowflakes
Animate snowfall.
Shake Ball Bounce
Animate ball movement based on mobile device motion.
Connected Particles
Draw circles and connecting lines using the mouse.
Flocking
Simulate bird flocking behavior.
Looking for the old p5.js site? Find it here!