Skip to main content
100%

p5js Template

✓ Published0🌍 Public
UUtopiah
Last edited Apr 14, 2016
Created on Apr 14, 2016

A bouncing white circle moves across a gray canvas, reversing direction when it hits the edges. The sketch uses the p5.js library, with `setup()` initializing the canvas and random starting position, while `draw()` updates the ellipse’s coordinates each frame. Horizontal speed increases slightly on edge collision, while vertical speed flips sign. No external data is loaded; the example demonstrates basic animation and collision logic entirely through p5.js drawing functions.

AI-generated description

Built with blockbuilder.org

Similar vizzes