← Drawing and animation with p5.js

Drawing and animation with p5.js: projects

Build something of your own with what you have learned. Each project is a goal, not steps: pick one, make it your way, and earn its badge.

A night skyAfter lesson 4: Lists and loopsPaint a night sky: a crowd of stars scattered at random, a moon, some ground, and stars that twinkle.an array.pusha loop over a listrandomBouncing ballsAfter lesson 5: Objects and starsMake a handful of balls that bounce around the canvas, each with its own colour and speed, and turn round whenever they hit a wall.an objecta propertya loop over a listifA pattern makerAfter lesson 6: Functions of your ownWrite your own flower function that draws one flower anywhere, then use it in loops to cover the canvas with a pattern.a function of your owna function with parametersa counting looprandom

Badges are saved in this browser only. To show your teacher, open a project and press Show your teacher.