© Engin Arslan 2018
Engin ArslanLearn JavaScript with p5.jshttps://doi.org/10.1007/978-1-4842-3426-6_2

2. Getting Started

Engin Arslan1 
(1)
Toronto, Ontario, Canada
 

Installing p5.js

There are a couple of ways you can start using p5.js and JavaScript. One option is to visit the p5.js website ( https://p5js.org/download ) and download the p5.js source code on to your system (see Figure 2-1).

At the time of the writing of this walkthrough, the download page has a link called ‘p5.js complete’ that includes the p5.js library and an example project. Download this archive file and find the folder named empty-example inside it. In this folder, you will find two files: the sketch.js file where you can write JavaScript code and an index.html file ...

Get Learn JavaScript with p5.js: Coding for Visual Learners now with the O’Reilly learning platform.

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