O'Reilly logo

Learn JavaScript with p5.js: Coding for Visual Learners by Engin Arslan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

2. Getting Started

Engin Arslan
(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 that can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required