Free
CourseLearn p5.js
Create generative visualizations and interactive experiences with p5.js, a popular JavaScript library for creative coding.
This course includes
This course includes
Skill level
IntermediateTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary9 hoursProjects
4Prerequisites
3 coursesWe suggest you complete the following courses before you get started with Learn p5.js:- Learn HTML
- Learn CSS
- Learn JavaScript
About this course
p5.js is an open-source JavaScript library designed for creative coding. This course allows you to explore programming as a form of artistic expression, teaching you how to create dynamic visuals, interactive experiences, and generative designs for various creative fields like design, gaming, and architecture.
Skills you'll gain
Creating 2D sketches and generative visuals
Interactive animations and multimedia elements
Using JavaScript fundamentals within p5.js
Syllabus
6 lessons • 4 projects • 4 quizzesCertificate of completion available with Plus or Pro
Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Projects in this course
- practice Project
Wall Drawing
Let's create a Sol LeWitt inspired wall drawing using p5.js. - practice Project
Bouncing Balls
Let's create an animation overflowing with colorful bouncing balls! - practice Project
Generative Art Creator
Let's build a tool that generates visualizations using keyboard interactions with p5.js.
Meet the creator of the course

Jiwon Shin
Manager of Programming at CodecademyEarn a certificate of completion
Show your network you've done the work by earning a certificate of completion for each course or path you finish.- Show proofReceive a certificate that demonstrates you've completed a course or path.
- Build a collectionThe more courses and paths you complete, the more certificates you collect.
- Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn p5.js course ratings and reviews
118 ratings
- 5 stars
- 4 stars
- 3 stars
- 2 stars
- 1 star
- The progress I have made since starting to use codecademy is immense! I can study for short periods or long periods at my own convenience - mostly late in the evenings.ChrisCodecademy Learner @ USA
- I felt like I learned months in a week. I love how Codecademy uses learning by practice and gives great challenges to help the learner to understand a new concept and subject.RodrigoCodecademy Learner @ UK
- Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.John-AndrewCodecademy Learner @ USA
Our learners work at
Join over 50 million learners and start Learn p5.js today!
Looking for something else?
Related resources
- Article
What is a p5.js Script? Complete Setup Guide
Learn what a p5.js script is, how it works, its different types, and how to set up your first project locally in this beginner-friendly guide. - Article
How to Create Flutter Animations: Complete Tutorial
Master Flutter animations: build widget transitions, animated backgrounds, and number counters with working code examples. - Article
Mastering Tailwind Animations for Beginners
Learn how to use Tailwind CSS to create attractive website animations.
Related courses and paths
- Generate visualizations and interactive experiences with p5.js, a popular JavaScript library for creative coding.
- Intermediate.5 hours
- Add interactivity to your p5.js sketch with mouse and keyboard functions.
- Intermediate.2 hours
- Add and manipulate media assets, such as images and videos, in your p5.js sketch.
- Intermediate.2 hours
Browse more topics
- Open source141,409 learners enrolled
- Web development5,645,248 learners enrolled
- JavaScript3,170,859 learners enrolled
- Code foundations8,417,512 learners enrolled
- Computer science6,906,900 learners enrolled
- Data science5,236,246 learners enrolled
- Python4,232,547 learners enrolled
- For business4,032,953 learners enrolled
- Data analytics3,136,310 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.







