Skip to content

abhinav-rajesh/P5.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pong-Inspired animation with Gravity in p5.js

This is a simple Pong-inspired animation created using p5.js. The animation features animated balls that bounce around the canvas, are a ected by gravity, and allow for dynamic changes in their color and size. Multiple balls are present, and each ball has unique speed and size characteristics.

Features Gravity: Balls experience downward gravity, making them fall unless they bounce o the edges. Speed Control: Balls move at varying speeds and bounce o the canvas edges with realistic behavior. Color & Size Change: Pressing any key changes the color and size of all the balls on the screen. Multiple Balls: The program features multiple balls that behave independently, each with its own size, speed, and color.

Prerequisites: p5.js JavaScript library