Skip to main content
  • Reference
  • Tutorials
  • Examples
  • Contribute
  • Community
  • About
  • Start Coding
  • Donate

p5.js is a friendly tool for learning to code and make art. It is a free and open-source JavaScript library built by an inclusive, nurturing community. p5.js welcomes artists, designers, beginners, educators, and anyone else!

Welcome to p5.js 2.0! Image by Dave Pagurek.

Welcome to p5.js 2.0! Image by Dave Pagurek.

Welcome to p5.js 2.0! Image by Dave Pagurek.

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

An abstract image showing "p5.js 2.0" surrounded by typographically-inspired shapes

Explore the p5.js library reference

Reference

Learn p5.js with examples

Examples
Screenshot of sketch

Screenshot of sketch

Geodata Weaving

Kaspar Ravel

Screenshot of sketch

Screenshot of sketch

Slime Molds

Patt Vira

See the p5.js community in action

Community
Screenshot of sketch

Screenshot of sketch

Generative Succulents

newyellow

Screenshot of sketch

Screenshot of sketch

Padrão Geométrico

Guilherme Vieira

Screenshot of sketch

Screenshot of sketch

Zen Pots

newyellow

Screenshot of sketch

Screenshot of sketch

Glitch animation

Karakure178

Donate to p5.js

Donate

Download p5.js

Download Library
p5.js
Resources
  • Reference
  • Tutorials
  • Examples
  • Contribute
  • Community
  • About
  • Start Coding
  • Donate
Information
  • Download
  • Contact
  • Copyright
  • Privacy Policy
  • Terms of Use
Socials
  • GitHub
  • Instagram
  • X
  • YouTube
  • Discord
  • Forum

Looking for the current stable 1.x p5.js reference? Find it here!