Chapter 2. Starting to Code

To get the most out of this book, you need to do more than just read the words. You need to experiment and practice. You can’t learn to code just by reading about it—you need to do it. To get started, download p5.js and make your first sketch.


First, you’ll need to get a  code editor. A code editor is similar to a text editor (like Notepad or Notes), except it has special functionality for editing code instead of plain text. You can use any code editor you like; we recommend Atom and Brackets, both of which can be downloaded online.

There is also an official p5.js editor in development. If you would like to use it, you can download it by visiting and selecting the button under ...

Get Make: Getting Started with p5.js now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.