← Drawing and animation with p5.js: projects

Bouncing balls

Open project · after lesson 5: Objects and stars

Make a handful of balls that bounce around the canvas, each with its own colour and speed, and turn round whenever they hit a wall.

One way it could look
One way it could look. Yours will be different.

You'll use

These light up when your code uses them. Click one to see where you learned it.

Try it yourselfYour edits are saved in this browser.

Milestones

Tick each one when it is true of your project. Nobody marks it: be honest with yourself.

Make it yours

Looking back

Tick every milestone first.

Drawing and animation with p5.js · project badge

★ Bouncing balls

Built with

Milestones

The hardest part