Introduction to p5.js

Johannes Preis
Sep 3, 2019 · 15 min read

p5.js is a JavaScript library for graphics programming which, at its core, provides a simple API for drawing to an HTML <canvas> element. In the following article, you will get to know its most important functions and features — hopefully providing you with everything you need to start writing your own sketches and continue exploring the many creative applications of this library.